using System.Collections; using System.Collections.Generic; using UnityEngine; using XFrame.Core.UI; using UnityEngine.UI; using DG.Tweening; namespace YHElectric { public class ModelPanel : XUIPanel { Transform bg; Transform btn; Transform model; public static bool Actived = false; public ModelPanel() : base(UIType.PopUp, UIMode.None, UICollider.None) { uiPath = "UI/UIPanelPrefab/ModelPanel"; } public override void Awake(GameObject go) { bg = transform.Find("BG"); model = bg.Find("model"); //btn = transform.Find("BG/model/Button"); //btn.GetComponent