Example #1
0
        //For combat API
        public void IncreaseTapTimeBy2Sec(string spellName)
        {
            var evnt = IncreaseTapTimeBy2Secs.Create(Bolt.GlobalTargets.Everyone);

            evnt.Spellname = spellName;
            evnt.Send();
        }
Example #2
0
 public override void OnEvent(IncreaseTapTimeBy2Secs evnt)
 {
     if (BoltNetwork.IsServer)
     {
         gameStateEntity.GetComponent <NetworkGameState>()
         .IncreaseTapSecondsAllowed();
         gameStateEntity.GetComponent <NetworkGameState>()
         .IncrementAttackCount();
     }
     //TODO: Display Feedback
     PanelHolder.instance.displaySpellCastNotif(evnt.Spellname, "Tap time increased by 2 seconds this combat", "OK");
 }