protected override void DoAwake() { homeState = stateMachine.GetState <GameStateHome>(); cityState = stateMachine.GetState <GameStateCity>(); EventBus.Subscribe <StartGameEvent>(OnGameStartEvent); SceneManager.sceneLoaded += OnSceneWasLoaded; }
private GameStateCity cityState; // string cityState = "Athens"; protected override void DoAwake() { titleState = stateMachine.GetState <GameStateTitleScreen>(); cityState = stateMachine.GetState <GameStateCity>(); EventBus.Subscribe <LeaveHomeEvent>(OnLeaveHomeEvent); }
public EnterCityEvent(GameStateCity cityState) { this.cityState = cityState; }