Click here to play.
Find my code at
W/S: Move forward/back
E: Open/close inventory
1-8: Select hotbar slot
Mouse: Select items in inventory
About this project
|Project category||School assignment|
|Teamg size||1 person|
The assignment was to be able to create a standalone Inventory script that can
add and delete items.
Furthermore, it was important to be able to swap items inside of the inventory.
As a small detail, instead of using icons, snapshots of the items are taken when
they are picked up and used as inventory icon.
Pro - I made the inventory adjustable using the inspector only.
Con - I didn't make it possible to switch items by dragging them over the inventory screen.