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