コード例 #1
0
        public void Destory(PanelInfo info)
        {
            if (info == null)
            {
                return;
            }

            BaseView baseView;

            _panelMap.TryGetValue(info.ViewId, out baseView);
            E_ViewId viewId = info.ViewId;

            if (baseView == null)
            {
                return;
            }

            _panelMap.Remove(viewId);

            baseView.OnDestroySelf();
            GameObjectHelper.DestroySelf(baseView.gameObject);

            ResLoader.Instance.UnLoadRes(info.GetPfbName);
        }
コード例 #2
0
 public override void OnRecycled()
 {
     base.OnRecycled();
     GameObjectHelper.DestroySelf(gameObject);
 }