Beispiel #1
0
        public void notifyCancelSpellcaster(int spellcasterID)
        {
            var selected = CancelSpellcaster.Create(Bolt.GlobalTargets.OnlyServer);

            selected.spellcasterID = spellcasterID;
            selected.Send();
        }
Beispiel #2
0
 /*Only the server recieves this event.*/
 public override void OnEvent(CancelSpellcaster evnt)
 {
     gameStateEntity.GetComponent <NetworkGameState>()
     .onSpellcasterCanceled(evnt.spellcasterID);
     if (gameStateEntity.GetComponent <NetworkGameState>().allPlayersSelected())
     {
         startGameButton.SetActive(true);
     }
     else
     {
         startGameButton.SetActive(false);
     }
 }