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

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

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