protected override void OnCollision(Collider2D other) { if (other.CompareTag(_bulletScriptableObject.TagString)) { EnemyBase enemy = other.GetComponent <EnemyBase>(); if (enemy != null) { enemy.ApplyDamage(_bulletScriptableObject.Damage); } OnExplosion(other); } }