烹饪基本流程完成
This commit is contained in:
22
Content/Lua/HomeLand/UI/Hearth/Widgets/Cookware.lua
Normal file
22
Content/Lua/HomeLand/UI/Hearth/Widgets/Cookware.lua
Normal file
@ -0,0 +1,22 @@
|
||||
---@class Cookware
|
||||
local Cookware = {}
|
||||
local Emitter = require("Utils.Emitter")
|
||||
local CookManager = require("GamePlay.CookSystem.CookManager")
|
||||
|
||||
|
||||
function Cookware:OnInitialized()
|
||||
self.cookware_id = 0
|
||||
self.MainBtn.OnClicked:Add(function()
|
||||
CookManager:UseCookware(self.cookware_id)
|
||||
end)
|
||||
end
|
||||
function Cookware:Construct()
|
||||
|
||||
end
|
||||
|
||||
function Cookware:Destruct()
|
||||
|
||||
end
|
||||
|
||||
|
||||
return Class(nil, nil, Cookware)
|
||||
Reference in New Issue
Block a user