Example #1
0
    protected override void DoAwake()
    {
        homeState = stateMachine.GetState <GameStateHome>();
        cityState = stateMachine.GetState <GameStateCity>();

        EventBus.Subscribe <StartGameEvent>(OnGameStartEvent);
        SceneManager.sceneLoaded += OnSceneWasLoaded;
    }
Example #2
0
    private GameStateCity cityState; // string cityState = "Athens";

    protected override void DoAwake()
    {
        titleState = stateMachine.GetState <GameStateTitleScreen>();
        cityState  = stateMachine.GetState <GameStateCity>();
        EventBus.Subscribe <LeaveHomeEvent>(OnLeaveHomeEvent);
    }
Example #3
0
 public EnterCityEvent(GameStateCity cityState)
 {
     this.cityState = cityState;
 }