From 8d95c9e0a3510a7820e3d123bd988d41f9b62b1b Mon Sep 17 00:00:00 2001 From: Ny Bruker <robinhs@stud.ntnu.no> Date: Sat, 29 Oct 2022 13:27:11 +0200 Subject: [PATCH] Added notes for possible future development. --- MrBigsock/Assets/Code/UI/ItemSlot.cs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/MrBigsock/Assets/Code/UI/ItemSlot.cs b/MrBigsock/Assets/Code/UI/ItemSlot.cs index bce1dbc3..ae690099 100644 --- a/MrBigsock/Assets/Code/UI/ItemSlot.cs +++ b/MrBigsock/Assets/Code/UI/ItemSlot.cs @@ -25,8 +25,8 @@ namespace BigSock.UI public void Update() { /* If it hasn't ran before, and the position has changed, update the ItemPref. - - This is to move the item to the item slot when it starts - - This has to be this way because the item slot is hoisted in the corner until this point. + - This is to move the item to the item slot when it starts + - This has to be this way because the item slot is hoisted in the corner until this point. */ if(!firstRan && transform.hasChanged) { transform.hasChanged = false; @@ -65,6 +65,12 @@ namespace BigSock.UI itemPref.position = null; } + /* + Notes: + - This doesn't handle what to do if this slot already had an item. + - This isn't a problem currently, since the inventory system will refuse to move an item into an occupied slot. + - If we want to add features to swap 2 items, this will need to be addressed. + */ } } } -- GitLab