Пример #1
0
        public void DeSerializeJSON(string fileName)
        {
            StreamReader reader = new StreamReader(fileName);

            data = JsonUtility.FromJson <SnailData>(reader.ReadToEnd());
            reader.Close();
            PersonalizeSnail();
        }
Пример #2
0
 private void Awake()
 {
     data = new SnailData();
     UnityEngine.Random.InitState((int)System.DateTime.Now.Ticks);
 }