|
|
|
@ -488,40 +488,48 @@ public class ReportDataMgr
|
|
|
|
|
allSubId = ChatManager.Instance.FindAllSubUserId(); |
|
|
|
|
// 自己救的轻伤员 |
|
|
|
|
foreach (var item in allTrappedPerson) |
|
|
|
|
{ |
|
|
|
|
if (item && item.GetComponent<TrappedMoveFree>()) |
|
|
|
|
{ |
|
|
|
|
TrappedMoveFree cloneGameObjInfo = item.GetComponent<TrappedMoveFree>(); |
|
|
|
|
if (cloneGameObjInfo.SaveFrirmanUserId == CurrentUserInfo.mySelf.Id) |
|
|
|
|
if (cloneGameObjInfo.SaveFrirmanUserId == CurrentUserInfo.mySelf.Id&&cloneGameObjInfo.OverMoveOrGuidance) |
|
|
|
|
{ |
|
|
|
|
totalSaveTrappedCount += 1; |
|
|
|
|
} |
|
|
|
|
// 下级救的人 |
|
|
|
|
foreach (var id in allSubId) |
|
|
|
|
{ |
|
|
|
|
if (cloneGameObjInfo.SaveFrirmanUserId == id) |
|
|
|
|
if (cloneGameObjInfo.SaveFrirmanUserId == id && cloneGameObjInfo.OverMoveOrGuidance) |
|
|
|
|
{ |
|
|
|
|
totalSaveTrappedCount += 1; |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
// 自己救的重伤员 |
|
|
|
|
foreach (var item in allWoundedPerson) |
|
|
|
|
{ |
|
|
|
|
if (item&&item.GetComponent<WoundedSave>()) |
|
|
|
|
{ |
|
|
|
|
WoundedSave cloneGameObjInfo = item.GetComponent<WoundedSave>(); |
|
|
|
|
if (cloneGameObjInfo.SaveFrirmanUserId == CurrentUserInfo.mySelf.Id) |
|
|
|
|
if (cloneGameObjInfo.SaveFrirmanUserId == CurrentUserInfo.mySelf.Id&& cloneGameObjInfo.OverMoveOrGuidance) |
|
|
|
|
{ |
|
|
|
|
totalSaveWoundedCount += 1; |
|
|
|
|
} |
|
|
|
|
// 下级救的人 |
|
|
|
|
foreach (var id in allSubId) |
|
|
|
|
{ |
|
|
|
|
if (cloneGameObjInfo.SaveFrirmanUserId == id) |
|
|
|
|
if (cloneGameObjInfo.SaveFrirmanUserId == id && cloneGameObjInfo.OverMoveOrGuidance) |
|
|
|
|
{ |
|
|
|
|
totalSaveWoundedCount += 1; |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
// 检测是什么车 |
|
|
|
@ -873,6 +881,7 @@ public class ReportDataMgr
|
|
|
|
|
// 获取表现最好的指挥 |
|
|
|
|
public static string GetZhiHuiBest() |
|
|
|
|
{ |
|
|
|
|
ReportDataMgr.GetActInPersonCount(); |
|
|
|
|
// 计算最高票数 |
|
|
|
|
float max = ZhiHuiScore.Max(i => i.Value); |
|
|
|
|
string name = ZhiHuiScore.Find(i => i.Value == max).Key; |
|
|
|
@ -900,6 +909,7 @@ public class ReportDataMgr
|
|
|
|
|
// 获取灭火平均分 |
|
|
|
|
public static float GetFireScore() |
|
|
|
|
{ |
|
|
|
|
ReportDataMgr.GetActInPersonCount(); |
|
|
|
|
float score = 0; |
|
|
|
|
foreach (var item in FireScore) |
|
|
|
|
{ |
|
|
|
@ -910,6 +920,7 @@ public class ReportDataMgr
|
|
|
|
|
// 获取救人平均分 |
|
|
|
|
public static float GetSaveScore() |
|
|
|
|
{ |
|
|
|
|
ReportDataMgr.GetActInPersonCount(); |
|
|
|
|
float score = 0; |
|
|
|
|
foreach (var item in SaveScore) |
|
|
|
|
{ |
|
|
|
@ -920,6 +931,7 @@ public class ReportDataMgr
|
|
|
|
|
// 获取侦察平均分 |
|
|
|
|
public static float GetLookAtScore() |
|
|
|
|
{ |
|
|
|
|
ReportDataMgr.GetActInPersonCount(); |
|
|
|
|
float score = 0; |
|
|
|
|
foreach (var item in LookAtScore) |
|
|
|
|
{ |
|
|
|
@ -930,6 +942,7 @@ public class ReportDataMgr
|
|
|
|
|
// 获取冷却平均分 |
|
|
|
|
public static float GetCoolScore() |
|
|
|
|
{ |
|
|
|
|
ReportDataMgr.GetActInPersonCount(); |
|
|
|
|
float score = 0; |
|
|
|
|
foreach (var item in CoolScore) |
|
|
|
|
{ |
|
|
|
@ -940,6 +953,7 @@ public class ReportDataMgr
|
|
|
|
|
// 获取供水平均分 |
|
|
|
|
public static float GetWaterScore() |
|
|
|
|
{ |
|
|
|
|
ReportDataMgr.GetActInPersonCount(); |
|
|
|
|
float score = 0; |
|
|
|
|
foreach (var item in WaterScore) |
|
|
|
|
{ |
|
|
|
|