// Use this for initialization // Update is called once per frame private void OnTriggerEnter(Collider other) { if (other.tag == "Player") { hud.OpenWinPanel(); } }