using Assets.Scripts; 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 RaceItemScript : MonoBehaviour, IPointerExitHandler, IPointerEnterHandler, IPointerUpHandler { // Start is called before the first frame update public enum ItemType { big, small } private Transform parent; [SerializeField] ItemType myType; private string _from = null; internal void Refresh() { if (mapCompetition == null) return; var res1 = ConfigHelper.mapCompetitionApi.GetById(mapCompetition.Id); if (res1.result) { Initial(res1.data, null); } } public MapCompetition mapCompetition { get; set; } void Start() { } // Update is called once per frame void Update() { } public void Initial(MapCompetition mapCompetition,Transform parent,string from = "list") { transform.GetComponent