public void ApplyDamage(EntityStats target) { target.TakeDamage(this); target.ApplyKnockback(transform.position, knockbackForce); ApplyStatesToEntity(target); if (owner && owner.states != null) { for (int i = 0; i < owner.states.Count; i++) { owner.states[i].currentState.OnDealDamage(owner, target, this); } } }