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) { }
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"); }
public override void OnPause(BaseContext context) { // _animator.SetTrigger("OnExit"); this.gameObject.SetActive(false); }
public virtual void OnExit(BaseContext context) { }
public virtual void OnPause(BaseContext context) { }
public virtual void OnEnter(BaseContext context) { }
public override void OnExit(BaseContext context) { DestroySelf(); base.OnExit(context); }
public override void OnEnter(BaseContext context) { base.OnEnter(context); }
public override void OnResume(BaseContext context) { base.OnResume(context); }
public override void OnExit(BaseContext context) { base.OnExit(context); }
public override void OnEnter(BaseContext context) { base.OnEnter(context); this.gameObject.SetActive(true); }
public override void OnResume(BaseContext context) { // _animator.SetTrigger("OnEnter"); this.gameObject.SetActive(true); }
public override void OnExit(BaseContext context) { base.OnExit(context); this.gameObject.SetActive(false); }