Open RubensKj opened 1 year ago
/cc @rubenskj (grids,items,ux-ui)
Make a script to be in the Inventory Manager
where this script will contains a list of "OnClick" inspector, where will execute the function.
Like once it places an item will trigger a event that will execute every action on this list of "OnClick" actions
Description
The idea is to use the same property like "OnClick" on Button UI, and use that for integrate with the Ultimate Grid Inventory.
Like: OnProximity - User can put how many thing he likes to insert in the Environment Grid.
OnTakeIt - When user take the item, will insert in the player inventory.
Events like that.
Implementation ideas
Create and script that handle this events and also listen to when the are executed, it should use the InventorySupplierSo in order to insert in the Environment Grid or the Player Inventory Grid.
Validate a way for send back a response for the user. Like if not player has no inventory, send it back and event saying that player has no inventory.