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