void OnTriggerEnter(Collider other) { if (other.tag == "Player") { thePlayerHealth.addDamage(1); pointsToGive.AddScore(newScore); } }