dezhou_client/lua_probject/base_project/Game/View/GameGroupView.lua

23 lines
549 B
Lua

GameGroupView = {}
local M = GameGroupView
function GameGroupView.new()
setmetatable(M, { __index = BaseView })
local self = setmetatable({}, { __index = M })
self.class = "GameGroupView"
self._full = true
self:init()
return self
end
function M:init()
self:InitView("base/prefab/ViewGameGroup.prefab", "base/prefab/ViewGameGroup")
local view = self._view
local bg = view.transform:Find("imageBG")
bg = bg:GetComponent(typeof(UnityEngine.UI.Image))
bg.sprite = CommonUISprite:GetSprite("bg1")
end