Esempio n. 1
0
    public void GameOverReset()
    {
        GameManager.EnteredGameFirstTime = true;

        SceneDataKeeper.ResetSavedData();
        GameManager.ResetEnemiesDefeated();
        GameManager.LoadOverworld();
    }
Esempio n. 2
0
    private void Awake()
    {
        if (instance != null)
        {
            Destroy(gameObject);
        }
        else
        {
            instance = this;
            DontDestroyOnLoad(gameObject);
        }

        GameEvents.OnLoadSceneController += SceneLoad;
        GameEvents.OnBeforeChangeScene   += SceneUnload;
    }