1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- 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;
- }
- }
- }
- }
|