Exemplo n.º 1
0
        public void DeSerializeJSON(string fileName)
        {
            StreamReader reader = new StreamReader(fileName);

            data = JsonUtility.FromJson <SnailData>(reader.ReadToEnd());
            reader.Close();
            PersonalizeSnail();
        }
Exemplo n.º 2
0
 private void Awake()
 {
     data = new SnailData();
     UnityEngine.Random.InitState((int)System.DateTime.Now.Ticks);
 }