public void Cast(Vector3 direction) { if (canCast) { canCast = false; PerformAbility(direction, stats.DamageModifier()); StartCoroutine(enableAttack()); } }
/// <summary> /// Try and attack /// </summary> /// <param name="direction"></param> public void Attack(Vector3 direction) { if (canAttack) { canAttack = false; PerformAttack(direction, stats.DamageModifier()); StartCoroutine(enableAttack()); } }