using Newtonsoft.Json; using System; using UnityEngine; namespace DataTools { [Serializable] public class Chirp { [JsonProperty] [SerializeField] private int time; [JsonProperty] [SerializeField] private int[] followers = new int[3]; public Chirp(int fol1, int fol2, int fol3) { followers = new int[3] { fol1, fol2, fol3 }; } [JsonIgnore] public int Time { get { return time; } set { time = value; } } [JsonIgnore] public int[] Followers { get { return followers; } set { followers = value; } } } }