加入用户最近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
@@ -5,6 +5,7 @@ using UnityEngine;
public class InGamePerformanceManager : MonoBehaviour
{
public static InGamePerformanceManager Instance { get; private set; }
public int HighestComboThisRun { get; private set; }
[Header("Inspector")]
[Tooltip("Achievement definitions loaded from Resources.")]
@@ -37,6 +38,7 @@ public class InGamePerformanceManager : MonoBehaviour
if (Instance == null)
{
Instance = this;
HighestComboThisRun = 0;
LoadAchievementLibrary();
}
else
@@ -98,6 +100,11 @@ public class InGamePerformanceManager : MonoBehaviour
public void UpdateCombo(int currentCombo)
{
if (currentCombo > HighestComboThisRun)
{
HighestComboThisRun = currentCombo;
}
CheckAchievementsByCategory(AchievementCategory.Combo, currentCombo);
}