加入用户最近100场战绩记录并实现展示

This commit is contained in:
FloatGaming
2026-03-16 23:18:58 +08:00
parent ec42f2e34b
commit f5c6f143c0
106 changed files with 12120 additions and 642 deletions
@@ -109,6 +109,25 @@ public sealed class DushMaterialLedger : MonoBehaviour
ChangeCount(DushMaterialCatalog.GetKey(kind), amount);
}
public bool TryConsume(DushMaterialKind kind, int amount)
{
if (amount <= 0)
{
return false;
}
string key = DushMaterialCatalog.GetKey(kind);
int current = GetCountByKey(key);
if (current < amount)
{
return false;
}
ChangeCount(key, -amount);
DailyTaskEventHub.ReportUseItem(amount);
return true;
}
public bool SeedFromPlayerSo(Player_SO playerData, bool overwriteExistingCounts)
{
if (playerData == null)