using DG.Tweening; using UnityEngine; using UnityEngine.EventSystems; using UnityEngine.UI; using XFrame.Core.UI; using XFrame.Core.Utils; public class MainPanel : XUIPanel { bool menuShow = true; RectTransform btnBG; Image arrow; Image downArrow; RectTransform outMinBg; public MainPanel() : base(UIType.Fixed, UIMode.None, UICollider.None) { uiPath = "UIPrefab/MainPanel"; } public override void Awake(GameObject go) { arrow = this.transform.Find("BG/BtnBG/btn-arrow").GetComponent(); downArrow = this.transform.Find("BG/TitleBG/img-downarrow").GetComponent(); btnBG = this.transform.Find("BG/BtnBG").GetComponent(); outMinBg = this.transform.Find("BG/TitleBG/img-outminbg").GetComponent(); this.transform.Find("BG/BtnBG/btn-warning").GetComponent