コード例 #1
0
    public void Init(GameStateMachine stateMachine)
    {
        Debug.Log("Entering In GamePlay State");

        _stateMachine = stateMachine;

        Tween introTween = Singleton.instance.gui.screenFader.FadeIn(1.0f);

        introTween.SetDelay(0.25f);

        _gameModeController = getGameModeController();
        _gameModeController.Start(gotoMainMenu);
    }
コード例 #2
0
ファイル: GameplayState.cs プロジェクト: Xaer033/tuck
    public void Init(GameStateMachine stateMachine, object changeStateData)
    {
        Debug.Log("Entering In GamePlay State");

        _stateMachine = stateMachine;

        Tween introTween = Singleton.instance.gui.screenFader.FadeIn(1.0f);

        introTween.SetDelay(0.25f);


        GameContext context = Singleton.instance.sessionFlags.gameContext;

        if (context == null)
        {
            context = GameContext.Create(GameMode.PASS_AND_PLAY);
        }

        _gameModeController = createGameModeController(context.gameMode);
        _gameModeController.AddListener(GameEventType.GAME_OVER, onGameOver);
        _gameModeController.Start(context);
    }