123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- using Excel2Json;
- using Fort23.Core;
- using Fort23.Mono;
- using Fort23.UTool;
- namespace Mono.Utility
- {
- public static class SkiptoHelper
- {
- public async static CTask Skipto(int skiptoId)
- {
- SkiptoConfig skiptoConfig = ConfigComponent.Instance.Get<SkiptoConfig>(skiptoId);
- switch (skiptoConfig.SkipID)
- {
- //不跳转
- case 0:
- return;
- //功法界面
- case 1:
- UIManager.Instance.GetComponent<AppBarPanel>().Btn_GongFa_Click();
- return;
- //法宝界面
- case 2:
- UIManager.Instance.GetComponent<AppBarPanel>().Btn_HeroInfomation_Click();
- return;
- //洞府界面
- case 3:
- UIManager.Instance.GetComponent<AppBarPanel>().Bne_dongfu_Click();
- return;
- //商店界面
- case 4:
- UIManager.Instance.GetComponent<AppBarPanel>().Btn_Shop_Click();
- return;
- default:
- return;
- }
- }
- public async static CTask<bool> IsSkipto(int skiptoId)
- {
- SkiptoConfig skiptoConfig = ConfigComponent.Instance.Get<SkiptoConfig>(skiptoId);
- switch (skiptoConfig.SkipID)
- {
- //不跳转
- case 0:
- return false;
- default:
- return true;
- }
- }
- public async static CTask SkiptoTips(int skiptoId)
- {
- }
- }
- }
|