diff --git a/MrBigsock/Assets/Code/UI/ItemSlot.cs b/MrBigsock/Assets/Code/UI/ItemSlot.cs index bce1dbc3cfd661a46190c61120e50441be478c3e..ae690099aa3b3a466346c040c777d220b25abfc2 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. + */ } } }