This commit is contained in:
DESKTOP-SAJ6RKV\Administrator 2025-06-13 02:00:12 +08:00
parent 088c4b4c2e
commit 3f5d568940
2 changed files with 21 additions and 7 deletions

View File

@ -16575,7 +16575,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: -0.0023804, y: 857}
m_AnchoredPosition: {x: -0.0023804, y: 893}
m_SizeDelta: {x: 1080, y: 472.77}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &1762914308485668896
@ -37354,9 +37354,9 @@ RectTransform:
- {fileID: 3736817874055198994}
- {fileID: 6033434420635246474}
- {fileID: 2090319480340751313}
- {fileID: 7639078275878196855}
- {fileID: 6282578790962902355}
- {fileID: 245133209852100473}
- {fileID: 7639078275878196855}
- {fileID: 6805953989209425366}
- {fileID: 2729579121250304069}
- {fileID: 2161047130895777792}
@ -52812,7 +52812,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 0, y: -104}
m_AnchoredPosition: {x: 0, y: -82}
m_SizeDelta: {x: 1000, y: 323}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &402247823195347884
@ -78344,7 +78344,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: -194, y: 624}
m_AnchoredPosition: {x: -194, y: 584}
m_SizeDelta: {x: 673.4304, y: 121.1576}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &7971765919379679797

View File

@ -1093,8 +1093,19 @@ namespace GameLogic
return;
}
string sbyrPlayerName = GetSbyrPlayerName(winActorTeam).protCustMessageData.nickName;
Log.Debug("当前虽败犹荣阵营的玩家:" + sbyrPlayerName);
var sbyrPlayer = GetSbyrPlayerName(winActorTeam);
string sbyrPlayerName = string.Empty;
if (sbyrPlayer == null)
{
sbyrPlayerName = "暂无";
}
else
{
sbyrPlayerName = GetSbyrPlayerName(winActorTeam).protCustMessageData.nickName;
Log.Debug("当前虽败犹荣阵营的玩家:" + sbyrPlayerName);
}
string zjgxPlayerName = topPlayer.protCustMessageData.nickName;
@ -1131,9 +1142,12 @@ namespace GameLogic
private UnitPlayerData GetSbyrPlayerName(ActorHItem winActor)
{
List<UnitPlayerData> m_tempList = new List<UnitPlayerData>();
Log.Debug("胜利阵营teamId" + winActor.m_Index);
foreach (var item in m_DicUnitPlayerDatas)
{
if (item.Value.teamId != winActor.m_Index.ToString())
if (item.Value.teamId != (winActor.m_Index + 1).ToString())
{
m_tempList.Add(item.Value);
}