在 MissionComp 的 onLoad 方法中初始化 showMemoryPanel 为 false,并调用 removeMemoryPanel 来销毁内存面板节点。 同时,将 update 方法中对 updateMemoryPanel 的调用移除,以停止面板的持续更新。
14 KiB
14 KiB
在 MissionComp 的 onLoad 方法中初始化 showMemoryPanel 为 false,并调用 removeMemoryPanel 来销毁内存面板节点。 同时,将 update 方法中对 updateMemoryPanel 的调用移除,以停止面板的持续更新。