예제 #1
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());
    }