private IEnumerator LoadDataFromFile() { yield return(new WaitForEndOfFrame()); // SaveController.Load(gameData); ScriptableObjectUtils.Reset(gameData); gameData.OnApplicationOpen(); // if (gameData.IsExistingUser) // gameData.ShowWelcomeBackData(); animalObject.Initialize(gameData.Animal); gameData.CurrentLevel = 1; timeController.TogglePause(false); IsInitializeDone = true; // test //testObject.SetTarget(Camera.main.ScreenToWorldPoint(testSpot.transform.position)); //testObject.StartMoving(); }
public void ResetData() { ScriptableObjectUtils.Reset(this); }