Explorar o código

Merge pull request #24 from Viagi/master

UIComponent.Remove的时候需要调用UIFactory.Remove
tanghai %!s(int64=8) %!d(string=hai) anos
pai
achega
8937c96b21
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      Unity/Hotfix/Component/UIComponent.cs

+ 1 - 0
Unity/Hotfix/Component/UIComponent.cs

@@ -117,6 +117,7 @@ namespace Hotfix
 			{
 				return;
 			}
+            UiTypes[type].Remove(type);
             uis.Remove(type);
 			ui.Dispose();
 		}