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); }
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); }
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); }
public SettingsState(SettingsStateInput input) : base(input) { }