private void OnTriggerEnter(Collider other) { if (other.gameObject.tag == "Player" || other.gameObject.tag == "Ghost") { // when the player or a ghost enters the colider of this object the text this stores is displayed m_screenText.ReceveText(m_textToDisplay); } }