void Start()
 {
     this.GetComponent <Button>().OnClickAsObservable()
     .Select(_ => PageDuck <PageName, SceneName> .ActionCreator.Push(PageName.PAGE_TITLE))
     .Subscribe(action => Unidux.Dispatch(action))
     .AddTo(this);
 }
コード例 #2
0
        private void UpdatePage(State state)
        {
            if (state.Scene.NeedsAdjust(config.GetPageScenes(), config.PageMap[state.Page.Current.Page]))
            {
                Unidux.Dispatch(PageDuck <PageName, SceneName> .ActionCreator.Adjust());
            }

            this.faderRenderer.FadeOut();
        }
        private void DispatchPageData()
        {
            var action = PageDuck <PageName, SceneName> .ActionCreator.SetData(this.contentsPageData);

            Unidux.Dispatch(action);
        }
        private void DispatchPageData()
        {
            var action = PageDuck <PageName, SceneName> .ActionCreator.Push(PageName.PAGE_RESULT, new ResultPageData(this.score));

            Unidux.Dispatch(action);
        }
コード例 #5
0
 void Awake()
 {
     Unidux.Dispatch(PageDuck <PageName, SceneName> .ActionCreator.Reset());
     Unidux.Dispatch(PageDuck <PageName, SceneName> .ActionCreator.Push(PageName.PAGE_TITLE));
 }