void OnCollisionEnter2D(Collision2D col) { if (col.gameObject.tag == "Enemy") { EnemyHealth enemyHP = col.gameObject.GetComponent <EnemyHealth>(); enemyHP.DealDamageToEnemy(_bulletDamage); } Destroy(gameObject); }