@@ -34,12 +34,8 @@ namespace GFGGame
public void Dispose()
{
-
- if (_scenePrefab != null)
- {
- GameObject.Destroy(_scenePrefab);
- _scenePrefab = null;
- }
+ //预制体不能被销毁
+ _scenePrefab = null;
if (sceneObject != null)
@@ -41,11 +41,6 @@ namespace GFGGame
_valueBarController = null;
}
- if (_dressUpObjUI != null)
- _dressUpObjUI.Dispose();
- _dressUpObjUI = null;
if (_comSelected != null)
_comSelected.RemoveFromParent();