public void OnTriggerStay(Collider other) { if (other.gameObject.CompareTag("Player")) { PlayerHealth.Addpoints(Amount); } }