// Check if ball is in hole void OnTriggerEnter(Collider trigger) { if (GameObject.ReferenceEquals(trigger.gameObject, m_Hole)) { // Send message to BallManager to display score and end the game m_Manager.End(strokes); } }