Ejemplo n.º 1
0
 protected override void Init()
 {
     base.Init();
     InitUI(EUiId.SIDE_VIEW);
     UITool.AddBtnListener(transform, () => { AppUIRoot.UIManager.Back(); }, "Back");
     UITool.AddBtnListener(transform, () => { AppUIRoot.UIManager.ShowUI(EUiId.VIEW_TWO); }, "Two");
     UITool.AddBtnListener(transform, () => { AppUIRoot.UIManager.ShowUI(EUiId.VIEW_ONE); }, "One");
 }
Ejemplo n.º 2
0
 protected override void Init()
 {
     base.Init();
     InitUI(EUiId.MAIN_UI, NormalInfoDataHandler.NAME);
     UITool.AddBtnListener(transform, () => { AppUIRoot.UIManager.ShowUI(EUiId.VIEW_ONE); }, "One");
     UITool.AddBtnListener(transform, () => { AppUIRoot.UIManager.ShowUI(EUiId.VIEW_TWO); }, "Two");
     UITool.AddBtnListener(transform, () => { AppUIRoot.UIManager.ShowUI(EUiId.SIDE_VIEW); }, "Side");
 }
Ejemplo n.º 3
0
 protected override void Init()
 {
     base.Init();
     InitUI(EUiId.VIEW_TWO, NormalInfoDataHandler.NAME);
     UITool.AddBtnListener(transform, () => { AppUIRoot.UIManager.Back(); }, "Back");
     UITool.AddBtnListener(transform, () => { AppUIRoot.UIManager.ShowUI(EUiId.VIEW_ONE); }, "One");
     UITool.AddBtnListener(transform, () => { AppUIRoot.UIManager.ShowUI(EUiId.MAIN_UI); }, "Main");
     UITool.AddBtnListener(transform, () => { AppUIRoot.UIManager.ShowUI(EUiId.DIALOG); }, "Dialog");
 }
Ejemplo n.º 4
0
 protected override void Init()
 {
     base.Init();
     InitUI(EUiId.DIALOG, NormalInfoDataHandler.NAME);
     UITool.AddBtnListener(transform, () => { AppUIRoot.UIManager.Back(); }, "Back");
     UITool.AddBtnListener(transform, () => { AppUIRoot.UIManager.ShowUI(EUiId.VIEW_ONE); }, "One");
     UITool.AddBtnListener(transform, () => { AppUIRoot.UIManager.ShowUI(EUiId.SIDE_VIEW); }, "Side");
     UITool.AddBtnListener(transform, () =>
     {
         NormalInfoData data = GetData <NormalInfoData>();
         data.Count++;
         dataHandler.UpdataData(data);
     }, "Count");
 }
Ejemplo n.º 5
0
 protected override void Init()
 {
     base.Init();
     InitUI(EUiId.VIEW_ONE, NormalInfoDataHandler.NAME);
     UITool.AddBtnListener(transform, () => { AppUIRoot.UIManager.Back(); }, "Back");
     UITool.AddBtnListener(transform, () => { AppUIRoot.UIManager.ShowUI(EUiId.VIEW_TWO); }, "Two");
     UITool.AddBtnListener(transform, () => { AppUIRoot.UIManager.ShowUI(EUiId.MAIN_UI); }, "Main");
     UITool.AddBtnListener(transform, () =>
     {
         NormalInfoData data = GetData <NormalInfoData>();
         data.Count++;
         dataHandler.UpdataData(data);
     }, "Count");
 }