using System.Collections;using System.Collections.Generic;using UnityEngine;using UnityEngine.UI;public class FinishLine : MonoBehaviour{ public GameObject winPanel; public GameObject losePanel; private void OnTriggerEnter(Collider Col) { if (Col.gameObject.tag == "RealPlayer") { winPanel.SetActive(true); } if (Col.gameObject.tag == "Player") { losePanel.SetActive(true); } } // Update is called once per frame void Update() { }}