public void GotoCoreGame() { if (_urlReader.AmIMaster()) { _playerId.MakeMeMaster(); // dummy event to inform comm server that we are master _signalBus.Fire((new InputSignal.IAmMaster(_playerId.Get()).ToNetwork())); _signalBus.Fire(new GameSignals.GotoStateSignal(typeof(CoreGameState))); } else { _signalBus.Fire(new GameSignals.GotoStateSignal(typeof(DriverUIState))); } }
protected override void down() { _signalBus.Fire(new InputSignal.DownArrowDown(_playerId.Get()).ToNetwork()); }
public void Shoot() { _signalBus.Fire(new InputSignal.FireDown(_playerId.Get()).ToNetwork()); }