public void Push(BaseContext nextContext)
        {

            if (_contextStack.Count != 0)
            {
                BaseContext curContext = _contextStack.Peek();
                BaseView curView = Singleton<UIManager>.Instance.GetSingleUI(curContext.ViewType).GetComponent<BaseView>();
                curView.OnPause(curContext);
            }

            _contextStack.Push(nextContext);
            BaseView nextView = Singleton<UIManager>.Instance.GetSingleUI(nextContext.ViewType).GetComponent<BaseView>();
            nextView.OnEnter(nextContext);
        }
        public virtual void OnResume(BaseContext context)
        {

        }
示例#3
0
 public override void OnPause(BaseContext context)
 {
     _animator.SetTrigger("OnExit");
 }
 public override void OnPause(BaseContext context)
 {
     base.OnPause(context);
 }
 public override void OnEnter(BaseContext context)
 {
     base.OnEnter(context);
     _gridScroller.Init(OnChange, 100, new Vector2(0.12f, 1f));
 }
 public override void OnResume(BaseContext context)
 {
     _animator.SetTrigger("OnEnter");
 }
示例#7
0
 public override void OnPause(BaseContext context)
 {
     // _animator.SetTrigger("OnExit");
     this.gameObject.SetActive(false);
 }
示例#8
0
 public virtual void OnResume(BaseContext context)
 {
 }
示例#9
0
 public override void OnPause(BaseContext context)
 {
     base.OnPause(context);
 }
示例#10
0
 public virtual void OnExit(BaseContext context)
 {
 }
示例#11
0
 public virtual void OnPause(BaseContext context)
 {
 }
示例#12
0
 public virtual void OnEnter(BaseContext context)
 {
 }
示例#13
0
 public override void OnExit(BaseContext context)
 {
     DestroySelf();
     base.OnExit(context);
 }
示例#14
0
 public override void OnResume(BaseContext context)
 {
     _animator.SetTrigger("OnEnter");
 }
示例#15
0
 public override void OnEnter(BaseContext context)
 {
     base.OnEnter(context);
 }
示例#16
0
 public override void OnResume(BaseContext context)
 {
     base.OnResume(context);
 }
示例#17
0
 public override void OnExit(BaseContext context)
 {
     base.OnExit(context);
 }
示例#18
0
 public override void OnEnter(BaseContext context)
 {
     base.OnEnter(context);
     this.gameObject.SetActive(true);
 }
示例#19
0
 public override void OnResume(BaseContext context)
 {
     // _animator.SetTrigger("OnEnter");
     this.gameObject.SetActive(true);
 }
示例#20
0
 public override void OnExit(BaseContext context)
 {
     base.OnExit(context);
     this.gameObject.SetActive(false);
 }
 public override void OnPause(BaseContext context)
 {
     _animator.SetTrigger("OnExit");
 }
        public virtual void OnEnter(BaseContext context)
        {

        }
 public override void OnEnter(BaseContext context)
 {
     base.OnEnter(context);
 }
        public virtual void OnExit(BaseContext context)
        {

        }
 public override void OnExit(BaseContext context)
 {
     base.OnExit(context);
 }
        public virtual void OnPause(BaseContext context)
        {

        }
 public override void OnResume(BaseContext context)
 {
     base.OnResume(context);
 }
示例#28
0
 public override void OnEnter(BaseContext context)
 {
     base.OnEnter(context);
     _gridScroller.Init(OnChange, 100, new Vector2(0.12f, 1f));
 }