SchloobySnack / UntitledPointAndClick

0 stars 0 forks source link

10 game object interaction system #20

Closed cschlue closed 1 year ago

cschlue commented 1 year ago

Basic interaction system that allows the player to click on ingame objects had have an interaction take place.

Created the interactable class with a property of type and methods to help find interactable navigation targets.

Two classes extend the Interactable class. Observable is a simple object that tells the game manager to have the player navigate to the nearest nav target and Door plays a simple animation and then tells the player to navigate to the nearest nav target for the door.