void OnTriggerEnter2D(Collider2D coll) { if (coll.gameObject.tag == "Player") { playerStamina.StaminaPowerUp(-1 * amount); Destroy(gameObject); } }