示例#1
0
    private IEnumerator Initializing()
    {
        yield return(MainGameManager.Instance.LoadSceneCoroutine(ConstantsScene.GAME_SCENE));

        sceneController = GameSceneController.Instance;
        sceneController.Initialize();

        while (!sceneController.isInit)
        {
            yield return(null);
        }

        IsInit = true;

        StartCoroutine(Show());
    }
示例#2
0
    private IEnumerator Show(string _spaceship)
    {
        yield return(MainGameManager.Instance.LoadSceneCoroutine(ConstantsScene.GAME_SCENE));

        sceneController = GameSceneController.Instance;
        sceneController.Initialize(_spaceship);
        gameplay        = sceneController.GetGameplayManager();
        playerSpaceship = gameplay.player.GetPlayerSpaceship();

        while (!sceneController.isInit)
        {
            yield return(null);
        }

        IsInit = true;

        OnChangePlayerSlots();

        yield return(SplashScreenManager.Instance.HideSplashScreen());
    }