|
@@ -146,20 +146,27 @@ namespace GFGGame
|
|
|
ViewManager.Show<SystemNoticeView>(new object[] { NoticeDataManager.Instance.LastNoticeInfo.title, NoticeDataManager.Instance.LastNoticeInfo.content });
|
|
|
}
|
|
|
|
|
|
- private async void OnClickBtnStart()
|
|
|
+ private void OnClickBtnStart()
|
|
|
{
|
|
|
- var serverInfosComponent = GameGlobal.zoneScene.GetComponent<ServerInfosComponent>();
|
|
|
- if (serverInfosComponent.ServerInfoList.Count <= 0)
|
|
|
+ if (PlatformManager.IsTaptap)//taptap平台
|
|
|
{
|
|
|
- bool login = GameController.CheckLoginCache(true);
|
|
|
- if (!login)
|
|
|
- {
|
|
|
- ViewManager.Show<LoginInputView>();
|
|
|
- }
|
|
|
+ LoginController.GetRoles().Coroutine();
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- await LoginController.GetRoles();
|
|
|
+ var serverInfosComponent = GameGlobal.zoneScene.GetComponent<ServerInfosComponent>();
|
|
|
+ if (serverInfosComponent.ServerInfoList.Count <= 0)
|
|
|
+ {
|
|
|
+ bool login = GameController.CheckLoginCache(true);
|
|
|
+ if (!login)
|
|
|
+ {
|
|
|
+ ViewManager.Show<LoginInputView>();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ LoginController.GetRoles().Coroutine();
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|