UnityToolbox
Brief documentation for all existing scripts.
 
Loading...
Searching...
No Matches
UnityToolbox.PlayerControls.TriggerDetection Class Referenceabstract

This script is used for interactions with objects with optional tooltips.

Inheritance diagram for UnityToolbox.PlayerControls.TriggerDetection:

Public Member Functions

void Start ()
 
void Update ()
 
abstract void OnInteraction (GameObject foundObject)
 Execute whatever should happen when the trigger found a valid object to interact with.
 

Protected Attributes

string _tooltip
 
string _appendedTooltip
 
string _interactActionName
 
PlayerInput _input
 
bool _tooltipEnabled
 Whether the tooltip module should be used to display text.
 
bool _isBinding
 

Member Function Documentation

◆ OnInteraction()

abstract void UnityToolbox.PlayerControls.TriggerDetection.OnInteraction ( GameObject  foundObject)
pure virtual
Parameters
foundObjectThe trigger data.

Referenced by UnityToolbox.PlayerControls.TriggerDetection.Update().

◆ Start()

void UnityToolbox.PlayerControls.TriggerDetection.Start ( )

◆ Update()

Member Data Documentation

◆ _appendedTooltip

string UnityToolbox.PlayerControls.TriggerDetection._appendedTooltip
protected

◆ _input

PlayerInput UnityToolbox.PlayerControls.TriggerDetection._input
protected

◆ _interactActionName

string UnityToolbox.PlayerControls.TriggerDetection._interactActionName
protected

◆ _isBinding

bool UnityToolbox.PlayerControls.TriggerDetection._isBinding
protected

◆ _tooltip

string UnityToolbox.PlayerControls.TriggerDetection._tooltip
protected

◆ _tooltipEnabled

bool UnityToolbox.PlayerControls.TriggerDetection._tooltipEnabled
protected