using Assets.Scenes.Ride.Scripts.Model; using Assets.Scripts; using Assets.Scripts.Apis; using Assets.Scripts.Apis.Models; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using UnityEngine; using UnityEngine.EventSystems; using UnityEngine.UI; namespace Assets.Scenes.Ride.Scripts { public class SelectPlayerFactory : MonoBehaviour { GameObject prefab; GameObject scroll; GameObject selectPanel; GameObject nearPanel; Transform content; Button rideButton; Button cancelButton; Button closeButton; Button searchButton; Button sortButton; Image sortImage; GameObject reviewPanel; GameObject noRecord; InputField inputField; InputField startValue; InputField endValue; private int pageIndex = 0; private int pageSize = 8; private int totalPages = 0; private string seachName = string.Empty; private double _startValue; private double _endValue; CyclingController cyclingController; public List gameObjects = new List(); List selectPlayerItemScripts = new List(); MapApi mapApi; Sprite down; Sprite up; private void Awake() { mapApi = new MapApi(); cyclingController = FindObjectOfType(); //分页查询当前路数排行榜选手成绩列表 prefab = Resources.Load("UI/Prefab/Ride/SelectPlayerItem"); down = Resources.Load("Images/DOWN"); up = Resources.Load("Images/UP"); scroll = transform.Find("Panel/PlayerList/Scroll View").gameObject; content = transform.Find("Panel/PlayerList/Scroll View/Viewport/Content"); rideButton = transform.Find("Panel/RideButton").GetComponent