备份CatanBuilding瘦身独立工程
This commit is contained in:
15
Assets/Scripts/Duel/UI/FishConfrimPlayerInfo.cs
Normal file
15
Assets/Scripts/Duel/UI/FishConfrimPlayerInfo.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using GameCore;
|
||||
using System.Linq;
|
||||
|
||||
public class FishConfrimPlayerInfo : FishPlayerInfo
|
||||
{
|
||||
public override void SetData(FishingDuelManager FDM)
|
||||
{
|
||||
base.SetData(FDM);
|
||||
string lvStr = LocalizationMgr.GetText("UI_PlayerGradePanel_2");
|
||||
int selflv = FDM.SelfModel.CarLevels.Sum();
|
||||
int enemylv = FDM.EnemyModel.CarLevels.Sum();
|
||||
text_num.SetValue(string.Format(lvStr, selflv), selflv > enemylv);
|
||||
text_num_enemy.SetValue(string.Format(lvStr, enemylv), selflv < enemylv);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user