private void SwitchMode(SwitchGameModeSignal signalData) { if (stateManager.CurrentState != gameStates[signalData.Mode]) { stateManager.ChangeState(gameStates[signalData.Mode]); signalBus.Publish <SwitchGameModeSignal>(gameModeSignals[signalData.Mode]); } }
private void ChangeName(SwitchGameModeSignal signalData) { string modeName = string.Empty; switch (signalData.Mode) { case Mode.Build: modeName = localizationService[buildModeId]; break; case Mode.Regular: modeName = localizationService[regularModeId]; break; } visibleText.text = modeName; }
private void SwitchGameMode(SwitchGameModeSignal signalData) { CurrentMode = signalData.Mode; }