guodong 1 year ago
parent
commit
f0a913a345

+ 5 - 5
GameClient/Assets/Game/HotUpdate/Effect/EffectUI.cs

@@ -7,13 +7,13 @@ namespace GFGGame
     {
         private GameObject _gameObject;
         private GoWrapper _wrapper;
-        public bool isDisposed;
+        public bool Released;
 
 
         public void Reset(GGraph holder, string uiName, string resName, float scale = 100, EffectUIType effectUIType = EffectUIType.UI )
         {
-            if (!isDisposed) Dispose();
-            isDisposed = false;
+            if (!Released) Release();
+            Released = false;
             string resPath;
             switch(effectUIType)
             {
@@ -35,9 +35,9 @@ namespace GFGGame
         }
 
 
-        public void Dispose()
+        public void Release()
         {
-            isDisposed = true;
+            Released = true;
             if (_gameObject != null)
             {
                 PrefabManager.Instance.Restore(_gameObject);

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Effect/EffectUIPool.cs

@@ -28,7 +28,7 @@ namespace GFGGame
         public static void Recycle(EffectUI effect)
         {
             if (effect == null) return;
-            effect.Dispose();
+            effect.Release();
             if (effectUIs.Contains(effect)) return;
             effectUIs.Add(effect);
         }

+ 1 - 0
GameClient/Assets/Game/HotUpdate/Views/ClothingSynthetic/ClothingSyntheticView.cs

@@ -4,6 +4,7 @@ using FairyGUI;
 using System.Collections.Generic;
 using System;
 using ET;
+using System.Collections;
 
 namespace GFGGame
 {