4坐座位
This commit is contained in:
@@ -149,7 +149,8 @@ namespace Assets.MyGame.Scripts.Net
|
||||
if (panel is GameMainPanel_FishBase fishPanel && notice != null)
|
||||
{
|
||||
// 如果座位被bot占用则替换
|
||||
var targetSit = fishPanel.list_Sits.Find(s => s.posID == notice.Position);
|
||||
// ⭐ 座位镜像:服务端座位转显示座位再找场景座位(JoinGame 内部也做同样转换)
|
||||
var targetSit = fishPanel.list_Sits.Find(s => s.posID == SeatMirror.ToDisplay(notice.Position));
|
||||
if (targetSit != null && targetSit.isBot)
|
||||
{
|
||||
targetSit.isBot = false;
|
||||
@@ -1034,7 +1035,8 @@ namespace Assets.MyGame.Scripts.Net
|
||||
}
|
||||
if (panel == null) return;
|
||||
|
||||
var targetSit = panel.list_Sits.Find(s => s.posID == position);
|
||||
// ⭐ 座位镜像:服务端座位转显示座位再找场景座位
|
||||
var targetSit = panel.list_Sits.Find(s => s.posID == SeatMirror.ToDisplay(position));
|
||||
if (targetSit == null) return;
|
||||
|
||||
if (showWaiting)
|
||||
@@ -1112,7 +1114,8 @@ namespace Assets.MyGame.Scripts.Net
|
||||
if (panel == null) continue; // 不在游戏中只补数据,进房流程自己会建座位
|
||||
|
||||
bool isBot = p.isBot || p.userId.StartsWith("bot_");
|
||||
var targetSit = panel.list_Sits.Find(s => s.posID == p.position);
|
||||
// ⭐ 座位镜像:服务端座位转显示座位再找场景座位(JoinGame 内部也做同样转换)
|
||||
var targetSit = panel.list_Sits.Find(s => s.posID == SeatMirror.ToDisplay(p.position));
|
||||
// 真人顶掉 bot 座位时先替换(与 RoomJoinNotice 分支同逻辑)
|
||||
if (targetSit != null && targetSit.isBot && !isBot)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user