private void OnTriggerEnter(Collider collision) { if (collision.gameObject.tag == "Player") { UIScript.Win(); } }