ro-table/Asstes/Resources/Script/FrameWork/command/LoadSceneLoadedCommand.txt
2025-06-04 05:02:57 +08:00

15 lines
491 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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