修改山东菏泽出怪位置、山东潍坊门口位置、添加魔力队长角色功能
This commit is contained in:
@@ -55,45 +55,45 @@ public class LoginPanel : MonoBehaviour
|
||||
|
||||
public void Author()
|
||||
{
|
||||
////延迟请求
|
||||
//MonoSingleton<CoroutineTaskManager>.Instance.WaitSecondTodo(() =>
|
||||
//{
|
||||
// // 登录
|
||||
// GameManager.Ins.Request((req, response) =>
|
||||
//延迟请求
|
||||
MonoSingleton<CoroutineTaskManager>.Instance.WaitSecondTodo(() =>
|
||||
{
|
||||
// 登录
|
||||
GameManager.Ins.Request((req, response) =>
|
||||
|
||||
// {
|
||||
// RequestLoginCount++;
|
||||
// if (response == null)
|
||||
// {
|
||||
// Debug.Log("鉴权失败1");
|
||||
// if (RequestLoginCount < 2)
|
||||
// {
|
||||
// Author();
|
||||
// return;
|
||||
// }
|
||||
// PanelState.StateChange(1);
|
||||
// return;
|
||||
// }
|
||||
// ResponseInfo info = JsonUtility.FromJson<ResponseInfo>(response.DataAsText);
|
||||
// if (info.code < 200 || info.code >= 300)
|
||||
// {
|
||||
// Debug.Log("鉴权失败2");
|
||||
// if (RequestLoginCount < 2)
|
||||
// {
|
||||
// Author();
|
||||
// return;
|
||||
// }
|
||||
// PanelState.StateChange(1);
|
||||
// return;
|
||||
// }
|
||||
{
|
||||
RequestLoginCount++;
|
||||
if (response == null)
|
||||
{
|
||||
Debug.Log("鉴权失败1");
|
||||
if (RequestLoginCount < 2)
|
||||
{
|
||||
Author();
|
||||
return;
|
||||
}
|
||||
PanelState.StateChange(1);
|
||||
return;
|
||||
}
|
||||
ResponseInfo info = JsonUtility.FromJson<ResponseInfo>(response.DataAsText);
|
||||
if (info.code < 200 || info.code >= 300)
|
||||
{
|
||||
Debug.Log("鉴权失败2");
|
||||
if (RequestLoginCount < 2)
|
||||
{
|
||||
Author();
|
||||
return;
|
||||
}
|
||||
PanelState.StateChange(1);
|
||||
return;
|
||||
}
|
||||
|
||||
// if (info.code == 200)
|
||||
// {
|
||||
// GameManager.Ins.InitData();
|
||||
// _isLogin = true;
|
||||
// }
|
||||
// });
|
||||
//}, 1);
|
||||
if (info.code == 200)
|
||||
{
|
||||
GameManager.Ins.InitData();
|
||||
_isLogin = true;
|
||||
}
|
||||
});
|
||||
}, 1);
|
||||
}
|
||||
|
||||
IEnumerator Progress()
|
||||
@@ -104,8 +104,8 @@ public class LoginPanel : MonoBehaviour
|
||||
_progress = 0;
|
||||
_isLogin = false;
|
||||
|
||||
GameManager.Ins.InitData();
|
||||
_isLogin = true;//修改为本地游戏
|
||||
//GameManager.Ins.InitData();
|
||||
//_isLogin = true;//修改为本地游戏
|
||||
float curWaitTime = 0;
|
||||
|
||||
while (_progress<=90)
|
||||
|
||||
Reference in New Issue
Block a user