using System.Collections; using System.Collections.Generic; using UnityEngine; using Newtonsoft; using Newtonsoft.Json; using System; namespace DataTools { [Serializable] public class LevelData: DataObject { [SerializeField] [JsonProperty] private int level; [SerializeField] [JsonProperty] private int experience; [SerializeField] [JsonProperty] private Currency rewards; [JsonIgnore] public Currency Rewards { get { return rewards; } set { rewards = value; } } [JsonIgnore] public int Level { get { return level; } set { level = value; } } [JsonIgnore] public int Experience { get { return experience; } set { experience = value; } } } }