Exemple #1
0
 void Awake()
 {
     if (instance != null)
     {
         Destroy(gameObject);
     }
     else
     {
         instance = this;
     }
     data = SaveMenager.Load();
     SwitchToShop.Invoke();
     SwitchToNormal.AddListener(LoadData);
 }
Exemple #2
0
 void LoadData()
 {
     data = SaveMenager.Load();
 }