otherotherjosh / GTS

welcome to GTS
1 stars 0 forks source link

Create Interaction System #7

Closed Christian-Irvine closed 1 week ago

Christian-Irvine commented 2 weeks ago

Features

This branch adds the player interaction system. It is a script called PlayerInteraction that goes on the player camera and will display information about what they are looking at to them via the UI canvas. There is also a script called InteractableObject which goes on any object that you want to display information on to the player. The Script also has the ability to enable a toggle to allow the ability to call the Interact Method on it when a button is pressed (This keybind will be decided on later when the Input System is in main). Therefore for any custom information the InteractableObject class can be inherited to add custom code into the Interact method by overriding it.