Example #1
0
 private void FixedUpdate()
 {
     if (fighter.GetCurrentSpell() == null)
     {
         return;
     }
     if (fighter.GetCurrentSpell().GetSpellType() != 0 || boxCollider.enabled == false)
     {
         return;
     }
     lightController.DealDamage(selfDamage);
 }
Example #2
0
 private void ActivateCollider()
 {
     sphereCollider.enabled = true;
     lightController.DealDamage(selfDamage);
 }