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); }
public override void OnRecycled() { base.OnRecycled(); GameObjectHelper.DestroySelf(gameObject); }