void OnTriggerEnter(Collider collider) { if (collider.tag == "Player") { ener.UpdateAmount(Heal); Destroy(this.gameObject); } }
void OnTriggerEnter(Collider collider) { if (collider.tag == "Player") { ener.UpdateAmount(Heal); Destroy(this.gameObject); } }