Beispiel #1
0
        public override async UniTask OnLoadedBase()
        {
            UIBaseLayer previewFieldLayer = UIController.Instance.GetBaseLayer(typeof(PreviewFieldBase));

            m_PreviewFieldBase = previewFieldLayer.Base as PreviewFieldBase;

            UIBaseLayer mixedBallTabBase = UIController.Instance.GetBaseLayer(typeof(MixedBallTabBase));

            m_MixedBallTabBase = mixedBallTabBase.Base as MixedBallTabBase;

            m_LaboScrollerView = RootTransform.GetComponent <LaboScrollerView>();
            InitLaboScrollerController();

            List <UIPart> parts = new List <UIPart>
            {
                // new HomeTabPart(m_LaboScrollerView.m_TabView, JumpToDataIndex)
            };

            // 追加待ち
            await UIController.Instance.YieldAttachParts(this, parts);

            const int FIRST_INDEX = 2;

            m_LaboScrollerView.m_Scroller.JumpToDataIndex(FIRST_INDEX);
        }
Beispiel #2
0
        public override async UniTask OnLoadedBase()
        {
            // var laboScrollerLayer = UIController.Instance.GetBaseLayer(typeof(LaboScrollerBase));
            m_PreviewFieldView = RootTransform.GetComponent <PreviewFieldView>();
            List <UIPart> parts = new List <UIPart>();

            // 追加待ち
            await UIController.Instance.YieldAttachParts(this, parts);
        }
Beispiel #3
0
        public override async UniTask OnLoadedBase()
        {
            m_HomeScrollerView = RootTransform.GetComponent <HomeScrollerView>();
            InitHomeScrollerController();

            List <UIPart> parts = new List <UIPart>
            {
                // new HomeTabPart(m_HomeScrollerView.m_TabObject, JumpToDataIndex)
            };

            // 追加待ち
            await UIController.Instance.YieldAttachParts(this, parts);

            const int FIRST_INDEX = 2;

            m_HomeScrollerView.m_Scroller.JumpToDataIndex(FIRST_INDEX);
        }
Beispiel #4
0
        public override async UniTask OnLoadedBase()
        {
            UIBaseLayer homeScrollerLayer = UIController.Instance.GetBaseLayer(typeof(HomeScrollerBase));

            m_HomeScrollerBase = homeScrollerLayer.Base as HomeScrollerBase;
            m_HomeTabView      = RootTransform.GetComponent <HomeTabView>();

            List <UIPart> parts = new List <UIPart>();

            for (int i = 0; i < m_HomeTabView.m_ButtonViews.Length; i++)
            {
                int index = i;
                parts.Add(new ButtonPart(m_HomeTabView.m_ButtonViews[i], () => ClickTabButton(index)));
            }

            // 追加待ち
            await UIController.Instance.YieldAttachParts(this, parts);
        }
Beispiel #5
0
 public void Open()
 {
     RootTransform.Find("Button").gameObject.SetActive(true);
     RootTransform.GetComponent <Animation>().Play();
 }