void OnCollisionEnter2D(Collision2D col) { if (m_IsDash) { string tag = col.gameObject.tag; if (tag != "Enemy" && tag != "Projectile") { InterruptDash(); } PhysicsEntity pEntity = col.gameObject.GetComponent <PhysicsEntity>(); if (pEntity) { pEntity.OnHit(); DashCooldown cd = GetFirstActiveCooldown(); if (cd) { cd.Reset(); } } } }