Introduction

00:00:00:09 - 00:00:29:24

 Peter

In this section, we're going to add a new feature to our inventory system that will allow us to swap places of two items. This we will need to have because then we can specify which items are appearing in our code bar. In terms of our code, we will add a new class called item Swapper UI that will handle the player's input and that will send a message to other scripts that we want to swap places of an item.


00:00:30:15 - 00:00:55:25

 Peter

Now we will need to connect this to our inventory controller and this script will handle the swapping of our items inside our inventory. So we'll need to add a new functionality to it. Now item swapper here will know that indices of items to swap. So the inventory controller will perform the swapping and then that change will appear in our UI.


00:00:56:04 - 00:00:59:17

 Peter

And this should be a pretty short section. So let's go to our project.


Complete and Continue