Example #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);
        }
Example #2
0
 // 锁屏操作
 public void Lock(bool value)
 {
     _lockCount += (value ? 1 : -1);
     GameObjectHelper.SetActive(_instance._lockCanvas, value);
 }
Example #3
0
 public void ResetLock()
 {
     _lockCount = 0;
     GameObjectHelper.SetActive(_instance._lockCanvas, false);
 }
Example #4
0
 /// <summary>
 /// 进
 /// </summary>
 public virtual void OnPush()
 {
     IsUse = false;
     GameObjectHelper.SetActive(gameObject, false);
 }
Example #5
0
 /// <summary>
 /// 出
 /// </summary>
 public virtual void OnPop()
 {
     IsUse = true;
     GameObjectHelper.SetActive(gameObject, true);
 }
Example #6
0
 public virtual void SetParent(Transform trans)
 {
     GameObjectHelper.SetParent(gameObject, trans);
 }
Example #7
0
 private void _on_change()
 {
     GameObjectHelper.SetActive(_normalGo, _state);
     GameObjectHelper.SetActive(_disableGo, !_state);
 }
Example #8
0
 public override void OnRecycled()
 {
     base.OnRecycled();
     GameObjectHelper.DestroySelf(gameObject);
 }
Example #9
0
 public override void OnInit()
 {
     base.OnInit();
     GameObjectHelper.SetActive(gameObject, false);
 }