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.
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 calledInteractableObject
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 theInteract
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 theInteractableObject
class can be inherited to add custom code into theInteract
method by overriding it.