private void OnTriggerEnter2D(Collider2D other) { //And this object happens to interact with a bullet if (other.CompareTag("Bullet")) { //Spawns a Instantiate(DamageEffect, transform.position, Quaternion.identity); HealthObj.BulletDamage(); EnemySource.clip = DamageSound; EnemySource.Play(); } }