Esempio n. 1
0
        public void _internal_close(PanelInfo data)
        {
            E_ViewId viewId = data.ViewId;

            if (!_panelMap.ContainsKey(viewId))
            {
                return;
            }
            BaseView baseView = _panelMap[viewId];

            baseView.OnExit();
            GameObjectHelper.SetActive(baseView.gameObject, false);
        }
Esempio n. 2
0
        public BaseView _internal_open(PanelInfo data)
        {
            if (data == null)
            {
                return(null);
            }

            E_ViewId viewId   = data.ViewId;
            BaseView baseView = !_panelMap.ContainsKey(viewId) ? _first_open_panel(data) : _again_open_panel(data);

            baseView.OnEnter();
            GameObjectHelper.SetActive(baseView.gameObject, true);
            return(baseView);
        }
Esempio n. 3
0
 // 锁屏操作
 public void Lock(bool value)
 {
     _lockCount += (value ? 1 : -1);
     GameObjectHelper.SetActive(_instance._lockCanvas, value);
 }
Esempio n. 4
0
 public void ResetLock()
 {
     _lockCount = 0;
     GameObjectHelper.SetActive(_instance._lockCanvas, false);
 }
Esempio n. 5
0
 /// <summary>
 /// 进
 /// </summary>
 public virtual void OnPush()
 {
     IsUse = false;
     GameObjectHelper.SetActive(gameObject, false);
 }
Esempio n. 6
0
 /// <summary>
 /// 出
 /// </summary>
 public virtual void OnPop()
 {
     IsUse = true;
     GameObjectHelper.SetActive(gameObject, true);
 }
Esempio n. 7
0
 private void _on_change()
 {
     GameObjectHelper.SetActive(_normalGo, _state);
     GameObjectHelper.SetActive(_disableGo, !_state);
 }
Esempio n. 8
0
 public override void OnInit()
 {
     base.OnInit();
     GameObjectHelper.SetActive(gameObject, false);
 }