using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class QiZiPanel : UIController { [SerializeField] Image BG; [SerializeField] Image im; private void OnEnable() { base.show(im,BG); } private void OnDisable() { hide(im,BG); } public override void hide(Image mainBody, Image BG, Action ac = null) { BG.gameObject.SetActive(false); mainBody.transform.localScale = Vector3.zero; } }