修改山东菏泽出怪位置、山东潍坊门口位置、添加魔力队长角色功能

This commit is contained in:
ZYT
2025-09-10 15:56:28 +08:00
parent fda352d213
commit 7d1a383520
129 changed files with 164423 additions and 116 deletions

View File

@@ -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)