1
This commit is contained in:
@@ -1083,10 +1083,16 @@ public class GameMainPanel_FishBase : GameMainPanel_Base
|
||||
|
||||
if (currBingFengTime <= 0)
|
||||
{
|
||||
toggle_BingFeng.isOn = false;
|
||||
toggle_BingFeng.SetIsOnWithoutNotify(false);
|
||||
currBingFengTime = 0f;
|
||||
if (img_BingFeng != null) img_BingFeng.fillAmount = 1f;
|
||||
// 解冻由 toggle.onValueChanged(false) 触发,不在此重复
|
||||
// ⭐ 冰冻结束:本地解冻 + 广播给其他客户端解冻
|
||||
// 之前只设 toggle.isOn=false,但 onValueChanged 监听器 if(!on)return
|
||||
// 导致解冻逻辑永远不执行,isFrozen 永远 true,之后永久不出鱼
|
||||
CreateFishManager.Instance.UnfreezeAllFish();
|
||||
ResumeAllFishAnimations();
|
||||
SyncFreeze(false);
|
||||
if (_bingFengInstance != null) _bingFengInstance.SetActive(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2061,6 +2067,9 @@ public class GameMainPanel_FishBase : GameMainPanel_Base
|
||||
}
|
||||
CreateFishManager.Instance.FreezeAllFish();
|
||||
PauseAllFishAnimations();
|
||||
// ⭐ 广播冰冻给其他客户端(包括人机房主代发的场景)
|
||||
// 之前只走 UsePropNotice 本地冻结,没广播 → 多人房间其他人不冻结
|
||||
SyncFreeze(true);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user