using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using DG.Tweening; public class SelectSubitem : UIController { [SerializeField] Image im; [SerializeField] Image BG; public override void hide(Image mainBody, Image BG, Action ac = null) { mainBody.transform.DOScale(new Vector3(0,0,0),0.01f); BG.gameObject.SetActive(false); } private void OnEnable() { base.show(im,BG); } private void OnDisable() { this.hide(im,BG); } }