Пример #1
0
        //For balancing boss hp
        public void SendNumOfSpellsForBalancing(int numOfSpells)
        {
            var evnt = SendNumOfSpells.Create(Bolt.GlobalTargets.OnlyServer);

            evnt.NumOfSpells = numOfSpells;
            evnt.Send();
        }
Пример #2
0
 /*Only the server recieves this event.*/
 public override void OnEvent(SendNumOfSpells evnt)
 {
     gameStateEntity.GetComponent <NetworkGameState>()
     .BalanceBossHp(evnt.NumOfSpells);
 }