/* 文件名:UiLayerObject.nut 路径:BaseClass/UiLayerObject/UiLayerObject.nut 创建日期:2024-05-06 15:29 文件用途:UI层 */ class CL_UiLayer extends Actor { constructor() { base.constructor(); } //更新 function OnUpdate(dt) { print("112323"); } } //初始化UI层 function InitUiLayer() { local Obj = CL_UiLayer(); getroottable().UiLayer <- Obj; return Obj.C_Object; } //更新UI层 function UpdateUiLayer(dt) { getroottable().UiLayer.OnUpdate(dt); }