Esempio n. 1
0
    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();
    }
Esempio n. 2
0
 public void ResetData()
 {
     ScriptableObjectUtils.Reset(this);
 }