This recipe will show you how to combine a number of other recipes in this chapter to demonstrate a simple interaction system, and a door with an interactable doorbell to cause the door to open.
Implementing a simple interaction system with UInterfaces
Getting ready...
This recipe requires the use of Action bindings. If you are unfamiliar with creating Action mappings, please refer to Chapter 6, Input and Collision, before continuing with this recipe.
How to do it...
- Create a new interface called Interactable.
- Add the following functions to the IInteractable class declaration...