1
This commit is contained in:
@@ -24,9 +24,9 @@ namespace Assets.MyGame.Scripts.Net
|
||||
public const string baseURL = "http://47.109.132.12";
|
||||
|
||||
#else
|
||||
//public const string baseURL = "http://47.109.132.12";
|
||||
public const string baseURL = "http://47.109.132.12";
|
||||
|
||||
public const string baseURL = "http://47.109.34.50";
|
||||
//public const string baseURL = "http://47.109.34.50";
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
@@ -38,9 +38,9 @@ namespace Assets.MyGame.Scripts.Net
|
||||
private const string baseUrl = "ws://47.109.132.12";
|
||||
|
||||
#else
|
||||
//private const string baseUrl = "ws://47.109.132.12";
|
||||
private const string baseUrl = "ws://47.109.132.12";
|
||||
|
||||
private const string baseUrl = "ws://47.109.34.50";
|
||||
//private const string baseUrl = "ws://47.109.34.50";
|
||||
|
||||
#endif
|
||||
public bool isGame = false;
|
||||
|
||||
@@ -529,8 +529,7 @@ namespace Assets.MyGame.Scripts.Net
|
||||
/// 统一退出捕鱼游戏流程:
|
||||
/// 1. 关闭 game socket(自己的离房通知已收到,可以正常关闭)
|
||||
/// 2. 拉取最新用户数据并触发 OnUserDataChanged 事件,同步大厅金币/钻石/等级等 UI
|
||||
/// 3. 复用游戏内 JinDuTiao 进度条卸载资源(和加入游戏流程一致,末尾保留2秒)
|
||||
/// 4. 进度条完成后切回大厅
|
||||
/// 3. 通知游戏面板 socket 已返回 → 解除进度条 0.9 的等待 → 走完剩余进度后自动切回 home
|
||||
/// </summary>
|
||||
private static void ExitFishingGame(UIPanel gamePanel)
|
||||
{
|
||||
@@ -546,15 +545,11 @@ namespace Assets.MyGame.Scripts.Net
|
||||
GameManager.Instance.UpdataUserData(user);
|
||||
});
|
||||
|
||||
// ⭐ 复用游戏面板的 JinDuTiao 进度条卸载资源,完成后进入 home 界面
|
||||
// ⭐ 通知面板 socket 已返回 → 进度条从 0.9 走到 1.0 → 切回 home
|
||||
var panel = UIManager.Instance.Get<GameMainPanel_FishBase>(gamePanel);
|
||||
if (panel != null)
|
||||
{
|
||||
panel.UnLoadResourcesWithProgress(() =>
|
||||
{
|
||||
// 进度条加载完成后进入 home 界面
|
||||
UIManager.Instance.ShowAsync(UIPanel.HomeMainPanel, gamePanel);
|
||||
});
|
||||
panel.OnLeaveRoomResultReceived(gamePanel);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user