源战役客户端
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 
 

28 行
675 B

--ui挂接模型处理
UIModelClass = UIModelClass or BaseClass(UIModelCommon)
--当前正在使用的rendertexture列表
function UIModelClass:__init(go,parent,model_data)
self.model_type = UIModelCommon.ModelType.Model
model_data.raycast_size = Vector2(0,0) --直接挂模型,不给拖拽旋转
self.model_data = model_data
self.layer_name = self.model_data.layer_name or "UI"
self:SetData(parent,model_data)
self:AddEvents()
end
function UIModelClass:__delete()
end
function UIModelClass:SetData(parent,model_data)
UIModelCommon.LoadRole(self, model_data)
end
function UIBackModelClass:AddEvents()
UIModelCommon.AddEvents(self)
end