-- 投资 require("LuaUtil") require("LuaItemBase") InvestPagePerchaseBtn = LuaItemBase:new() local moneyType local moneyCount local PerchaseBtn function InvestPagePerchaseBtn.Awake() moneyType = _moneyType:GetComponent("Image") -- 货币类型 moneyCount = _moneyCount:GetComponent("Text") -- 货币数量 PerchaseBtn = _PerchaseBtn:GetComponent("Button") -- 确认投资 end function InvestPagePerchaseBtn.ShowWithTab(data) ELog('-----------------') end