//For balancing boss hp public void SendNumOfSpellsForBalancing(int numOfSpells) { var evnt = SendNumOfSpells.Create(Bolt.GlobalTargets.OnlyServer); evnt.NumOfSpells = numOfSpells; evnt.Send(); }
/*Only the server recieves this event.*/ public override void OnEvent(SendNumOfSpells evnt) { gameStateEntity.GetComponent <NetworkGameState>() .BalanceBossHp(evnt.NumOfSpells); }