Browse Source

WildAttack单例清理

lvjincheng 2 years ago
parent
commit
73a3f20711
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Assets/WildAttack/Scripts/GameEnter.cs

+ 1 - 1
Assets/WildAttack/Scripts/GameEnter.cs

@@ -14,6 +14,7 @@ namespace WildAttack
         private int coroutineNum = 7;
         void Awake()
         {
+            SingletonManager.Clear();
             // 数据类init
             ModuleInit();
         }
@@ -69,7 +70,6 @@ namespace WildAttack
             if (coroutineNum == 0)
             {
                 ObjectPoolInit();
-
                 UIManager.GetInstance().Init(() =>
                 {
                     FlotagePool.GetInstance().Init();