using Assets.Scripts; using Assets.Scripts.Apis; using Assets.Scripts.Apis.Models; using DG.Tweening; using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.EventSystems; using UnityEngine.SceneManagement; using UnityEngine.UI; public class PropNames { public static List icons = new List { "icon1", "icon2", "icon3" }; public static List texts = new List { "DistanceText", "EleText", "SlopeText" }; public static Dictionary colorDict = new Dictionary { { true,"#ffffff"},{false,"#5c5c6e" } }; } public class MapItem : MonoBehaviour, IPointerExitHandler, IPointerEnterHandler,IPointerUpHandler { public bool isModal = false; float width; float height; void Awake() { width = this.GetComponent().rect.width; height = this.GetComponent().rect.height; } // Start is called before the first frame update //[SerializeField] Text text; //[SerializeField] GameObject panel; //[SerializeField] RawImage rawImage; void Start() { transform.Find("CollectImg").gameObject.SetActive(false); } // Update is called once per frame void Update() { } float? localY = null; MapRoute map; Dictionary caches; private MapRouteAreaItem area = null; private Action refresh = null; public void Initial(MapRoute myMap, Dictionary caches, MapRouteAreaItem area = null,Action refresh = null) { if (caches != null) { this.caches = caches; } this.area = area; this.refresh = refresh; map = myMap; if (!isModal) { transform.GetComponent