using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.EventSystems; using UnityEngine.UI; public class BigLeftController : MonoBehaviour { public void OnPointerClick() { Debug.Log(11); RouteItem route = transform.parent.GetComponent(); if (route.enter) { route.OnPointerExit(null); } else { route.OnPointerEnter(null); } } //public void OnPointerEnter(PointerEventData eventData) //{ // transform.parent.GetComponent().OnPointerEnter(eventData); //} //public void OnPointerExit(PointerEventData eventData) //{ // transform.parent.GetComponent().OnPointerExit(eventData); //} // Start is called before the first frame update void Start() { transform.GetComponent