private void OnTriggerEnter2D(Collider2D other) { if (other.tag == "Player") { SimplePlayer player = other.GetComponent <SimplePlayer>(); player.healDamage(healthRestore); au.Play(); Destroy(gameObject); } }