예제 #1
0
 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)));
     }
 }
예제 #2
0
 protected override void down()
 {
     _signalBus.Fire(new InputSignal.DownArrowDown(_playerId.Get()).ToNetwork());
 }
예제 #3
0
 public void Shoot()
 {
     _signalBus.Fire(new InputSignal.FireDown(_playerId.Get()).ToNetwork());
 }