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); }
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); }