コード例 #1
0
    private SettingsState CreateSettingsState(ScenarioController scenarioController)
    {
        var input = new SettingsStateInput(scenarioController);
        var state = new SettingsState(input);

        var menuTransistion = new EventTransition(MenuState.StateName);

        input.BackClickedEvent += menuTransistion.ChangeState;

        state.AddTransitions(menuTransistion);

        return(state);
    }
コード例 #2
0
        private SettingsState CreateSettingsState()
        {
            var input = new SettingsStateInput();
            var state = new SettingsState(input);

            var previousStateTransition = new OnEventTransition(MainMenuState.StateName);

            input.BackClickedEvent += previousStateTransition.ChangeState;

            state.AddTransitions(previousStateTransition);

            return(state);
        }
コード例 #3
0
        private SettingsState CreateSettingsState(ITAlertPhotonClient photonClient)
        {
            var input = new SettingsStateInput();
            var state = new SettingsState(input);

            var previousStateTransition       = new OnEventTransition(PausedState.StateName);
            var onFeedbackStateSyncTransition = new OnMessageTransition(photonClient, ITAlertChannel.GameState, typeof(FeedbackMessage), FeedbackState.StateName);

            input.BackClickedEvent += previousStateTransition.ChangeState;

            state.AddTransitions(onFeedbackStateSyncTransition, previousStateTransition);

            return(state);
        }
コード例 #4
0
 public SettingsState(SettingsStateInput input) : base(input)
 {
 }