Exemple #1
0
 public void Run()
 {
     stateManager.Start(gameStates[Mode.Regular]);
     stateManager.ChangeState(gameStates[Mode.Build]);
     signalBus.Publish <SwitchGameModeSignal>(gameModeSignals[Mode.Build]);
     signalBus.Subscribe <SwitchGameModeSignal>(SwitchMode);
 }
 public GameMode(ISignalBus signalBus)
 {
     signalBus.Subscribe <SwitchGameModeSignal>(SwitchGameMode);
 }