15 lines
491 B
Plaintext
15 lines
491 B
Plaintext
local LoadSceneLoadedCommand = class("LoadSceneLoadedCommand",pm.SimpleCommand)
|
||
|
||
function LoadSceneLoadedCommand:execute(note)
|
||
--TODO 呼叫GC,釋放記憶體
|
||
--call gc
|
||
self:UnLoadStartUI()
|
||
SceneProxy.Instance:ASyncLoad()
|
||
end
|
||
|
||
function LoadSceneLoadedCommand:UnLoadStartUI()
|
||
ResourceManager.Instance:SUnLoad(ResourcePathHelper.UIView("StartGamePanel"), false);
|
||
ResourceManager.Instance:SUnLoad(ResourcePathHelper.UIView("CreateRoleViewV2"), false);
|
||
end
|
||
|
||
return LoadSceneLoadedCommand |