rushassets / ultimate-grid-inventory-demos

Repository containg the Ultimate Grid Inventory demos and their issues
https://www.rushassets.com/products/ultimate-grid-inventory
MIT License
2 stars 0 forks source link

Create an "OnClick" event system but for integrate with the Ultimate Grid Inventory #33

Open RubensKj opened 1 year ago

RubensKj commented 1 year ago

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.

rush-github-bot[bot] commented 1 year ago

/cc @rubenskj (grids,items,ux-ui)

RubensKj commented 4 months ago

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