using System.Collections; using System.Collections.Generic; using UnityEngine; public class ResultListPanelController : PFUIPanel { // Start is called before the first frame update void Start() { UIManager.AddEvent(transform.Find("LTPanel/Button").gameObject, UnityEngine.EventSystems.EventTriggerType.PointerClick, b => { UIManager.ShowPrePanel(); }); UIManager.AddEvent(transform.Find("LTPanel/SwitchAccountButton").gameObject, UnityEngine.EventSystems.EventTriggerType.PointerClick, b => { UIManager.SwitchAccount(); }); var rect = transform.GetComponent(); rect.offsetMax = new Vector2(rect.offsetMax.x, 0); rect.offsetMin = new Vector2(rect.offsetMin.x, 0); } public override void Show() { base.Show(); transform.Find("RideResultList").GetComponent().Load(); } // Update is called once per frame void Update() { } }