Skip to content

Interaction.cs

Matthew Coulter edited this page Aug 17, 2022 · 1 revision

Interaction

class/ Inherits from:None

Description

This class allows configuration of label, input method and custom interaction sequence to be configured in the inspector

Public Properties

Property Description Type
label; how the users identifies the interaction string
method; how the user triggers the action (identifier from the Input Manager) string
onInteract; what happens when this interaciton happens UnityEvent

Public Methods

Method Description Returns Parameters Type
Triggered Determines whether the user has inputted the required input to trigger the action True or false bool
Interact Runs the interaction sequence void