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)
        {

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