public void DeSerializeJSON(string fileName) { StreamReader reader = new StreamReader(fileName); data = JsonUtility.FromJson <SnailData>(reader.ReadToEnd()); reader.Close(); PersonalizeSnail(); }
private void Awake() { data = new SnailData(); UnityEngine.Random.InitState((int)System.DateTime.Now.Ticks); }