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); }
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); }
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); }
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); }
public void Open() { RootTransform.Find("Button").gameObject.SetActive(true); RootTransform.GetComponent <Animation>().Play(); }