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.UI; public class ResultListController : MonoBehaviour { [SerializeField]Transform routeResult; Transform scrollContent; Transform routeScroll, matchScroll; Transform routeContent, matchContent; Transform btnRoute, btnMatch,searchInput; Color c1, c2; // Start is called before the first frame update int pageIndex = 0, pageSize = 20; string name = ""; Transform[] contents; void Start() { //ApiBase.SetCookie("73385F5F719B610D132C1ECF3E9143272BF15214D57ED91CD7A9DFD832407471535112AAEB8E9271F75D54FBBF2D99F18FA313C1EEA5676F5D722D7FBB07C926BEC5905591BF9AFDDC6336552DF273112C2DA1794E6FA2F465B11FECD2E82E52"); InitialColor(); scroll = transform.Find("ListPanel").Find("Scroll").GetComponent(); btnMatch = transform.Find("ListPanel").Find("BtnMatch"); btnRoute = transform.Find("ListPanel").Find("BtnRoute"); searchInput = transform.Find("ListPanel").Find("SearchInput"); scrollContent = scroll.transform.Find("Viewport").Find("Content"); routeScroll = scrollContent.Find("RouteList"); routeContent = routeScroll.Find("Viewport").Find("Content"); matchScroll = scrollContent.Find("MatchList"); matchContent = matchScroll.Find("Viewport").Find("Content"); contents = new Transform[] { routeContent, matchContent}; if (btnMatch != null) { btnMatch.GetComponent