The base project is a top down blueprint template with mobile starter content (only used assets was keep).
TopDownController has been modified for handle an IClickabe interface, all actors implementing this interface will be ignore by player movement but will dispatch the click event in these.
It is commented, you can explore the TopDownController’s blueprint.
Actors implementing this interface will make some work when clicked. In fact in our project there is two IClickable type :
– BP_Door will switch his state at click (open/close).
– BP_LightSwitch will take an IInteractable actor as parameter and will call his Interact function when clicked (light/ no light)
This interface is only used by our controller.