Inventory and Store System – Part 5.3 (Hooking into Event System Events via Code) | .GAME

This post has been republished via RSS; it originally appeared at: Channel 9.

In this episode, we are going to go over the challenge given at the end of Part 5.2 by adding logic to sell or destroy items in our inventory. The action taken will depend on game logic such as whether the store window is open and what mouse button the player pushed. We will explore more of the event system by looking at how you can access events in code, particularly the OnPointerClick event.

Resources:

Leave a Reply

Your email address will not be published. Required fields are marked *

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.