IEnumerator DelayEnd()
    {
        yield return(new WaitForEndOfFrame());

        lev.setInputEnable(false);

        yield return(new WaitForSeconds(14));

        //SHOULD NOT RESET ALL!!
        GameDataManager.shared().Reset();
        //SHOULD NOT RESET ALL!!

        GameDataManager.shared().LOCAL_IsLoadOpening = true;
        print(GameDataManager.shared().MyuuJournalState.ToString());
        if (GameDataManager.shared().MyuuJournalState == MyuuJournalState.None)
        {
            GameDataManager.shared().MyuuJournalState = MyuuJournalState.First;
            GameDataManager.shared().Save(GameDataManager.GameDataType.MyuuData);
        }

        GameDataManager.shared().SaveGameExist  = false;
        GameDataManager.shared().PlayerLocation = new LocationModel(nextScene, LocationType.Start);

        SceneManager.LoadScene(nextScene);
        MainObjectSingleton.DestoryAllInstance();
    }
示例#2
0
    void HandleOnFadeOutCompleted()
    {
        fader.OnFadeOutCompleted -= HandleOnFadeOutCompleted;
        //
        MainObjectSingleton.DestoryAllInstance();
        //load scene
        //		SceneManager.LoadScene (GameDataManager.shared().PlayerLocation.sceneName);

        SceneManager.LoadScene(GameDataManager.shared().PlayerLocation.sceneName);
    }
示例#3
0
    void Fader_OnFadeOutCompleted()
    {
        fader.OnFadeOutCompleted -= Fader_OnFadeOutCompleted;

        //destroy all dont destroy onload
        MainObjectSingleton.DestoryAllInstance();
        GameDataManager.shared().PlayerLocation = portalTo;
        SceneManager.LoadScene(portalTo.sceneName);
//		GameDataManager.shared ().NextSceneFromLoadScreen = portalTo.sceneName;
//		SceneManager.LoadScene ("LoadingScreen");
    }
示例#4
0
 void HandlePausedMenuMainMenu()
 {
     ClearEvents();
     Time.timeScale = 1f;
     MainObjectSingleton.DestoryAllInstance();
 }
示例#5
0
 void Fader_OnFadeOutCompleted()
 {
     fader.OnFadeOutCompleted -= Fader_OnFadeOutCompleted;
     op.allowSceneActivation   = true;
     MainObjectSingleton.DestoryAllInstance();
 }
示例#6
0
 void HandleOpeningMenuStartingNewGame()
 {
     ClearEvents();
     GUIMenu.shared().isIdle = true;
     MainObjectSingleton.DestoryAllInstance();
 }