初始化提交
This commit is contained in:
15
Content/Lua/GamePlay/Components/InventoryComponent.lua
Normal file
15
Content/Lua/GamePlay/Components/InventoryComponent.lua
Normal file
@ -0,0 +1,15 @@
|
||||
local InventoryComponent = {}
|
||||
|
||||
|
||||
function InventoryComponent:ReceiveBeginPlay()
|
||||
print(self, "InventoryComponent:ReceiveBeginPlay")
|
||||
end
|
||||
|
||||
function InventoryComponent:InitItemGrid(grid)
|
||||
grid.MaxCount = 1
|
||||
grid.CurrentCount = 0
|
||||
grid.Priority = 1
|
||||
return grid
|
||||
end
|
||||
|
||||
return Class(nil, nil, InventoryComponent)
|
||||
Reference in New Issue
Block a user