using Assets.Scripts; using Assets.Scripts.Apis; using Assets.Scripts.Apis.Models; using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.EventSystems; using UnityEngine.SceneManagement; using UnityEngine.UI; public class RouteItem : MonoBehaviour #if !(UNITY_ANDROID || UNITY_IOS) ,IPointerEnterHandler,IPointerExitHandler #endif { RouteResult routeResult; // Start is called before the first frame update Transform left,row1,row2,right,rightDot; Transform btnReRide, btnContinue, btnDelete; Transform btnDetail; void Start() { } // Update is called once per frame void Update() { } string titleColor = "#5c5c6e"; RouteResult data; //滑动索引 0route 1match int index; //交互用 private Transform parent { get; set; } public void Initial(object result, int index, Transform parent = null,bool top = false) { this.index = index; if (parent) { this.parent = parent; } left = transform.Find("BigLeft/Left"); row1 = left.Find("Main").Find("Row1"); row2 = left.Find("Main").Find("Row2"); rightDot = transform.Find("RightDot"); if (rightDot != null) { UIManager.AddEvent(rightDot.Find("BtnDot").gameObject, EventTriggerType.PointerClick, (b) => OnPointerEnter(null)); UIManager.AddEvent(rightDot.Find("BtnDelete").gameObject, EventTriggerType.PointerClick, (b) => Delete()); } //right.gameObject.SetActive(true); #if !(UNITY_ANDROID || UNITY_IOS) gameObject.GetComponent