Esempio n. 1
0
 void UpdateScene(State state)
 {
     if (state.Scene.NeedsAdjust(config.GetPageScenes(), config.PageMap[state.Page.Current.Page]))
     {
         Unidux.Dispatch(PageDuck <Page, Scene> .ActionCreator.Adjust());
     }
 }
Esempio n. 2
0
 void Start()
 {
     this.GetComponent <Button>().OnClickAsObservable()
     .Select(_ => PageDuck <Page, Scene> .ActionCreator.Pop())
     .Subscribe(action => Unidux.Dispatch(action))
     .AddTo(this);
 }
Esempio n. 3
0
 void Start()
 {
     Unidux.Dispatch(PageDuck <Page, Scene> .ActionCreator.Reset());
     Unidux.Dispatch(PageDuck <Page, Scene> .ActionCreator.Push(Page.Page1));
 }