Merge branch 'master' into LouDi_Quan

This commit is contained in:
shenjianxing 2025-01-22 18:22:03 +08:00
commit f73c3cb3b2

View File

@ -96,9 +96,6 @@ public class ScoreController : MonoSingleton<ScoreController>
private void OnQuit(OnModuleQuit quit) private void OnQuit(OnModuleQuit quit)
{ {
var data = moduleDict[Global.Instance.curModule.ModuleName];
var scoreDict = data.scoreDict;
scoreDict.Clear();
TypeEventSystem.Global.UnRegister<OnModuleStart>(OnStart); TypeEventSystem.Global.UnRegister<OnModuleStart>(OnStart);
TypeEventSystem.Global.UnRegister<OnModuleQuit>(OnQuit); TypeEventSystem.Global.UnRegister<OnModuleQuit>(OnQuit);
} }