public override void Init() { base.Init(); Instance = this; listText = new List <ItemTip>(); for (int i = 0; i < deep; i++) { GameObject _objItem = GameObject.Instantiate(objItem) as GameObject; _objItem.transform.parent = this.tran; ItemTip _item = _objItem.GetComponent <ItemTip>(); listText.Add(_item); _objItem.SetActive(false); } }
public override void OnClose() { Instance = null; base.OnClose(); }