Sends a message to a GameObject when TPC interacts with this component. More...
Public Member Functions | |
virtual void | Awake () |
int | GetInteractableID () |
Returns the ID of the interactable target. More... | |
virtual bool | IsInteractionReady () |
Is the target ready to be interacted with? More... | |
virtual void | Interact () |
Interact with the target by sending the specified message (e.g., "OnUse"). More... | |
Public Attributes | |
Transform | player |
The player's transform. More... | |
Transform | target |
The recipient of the message. More... | |
string | message = "OnUse" |
The message to send to the target. More... | |
bool | debug = false |
Set true to log debug info. More... | |
Sends a message to a GameObject when TPC interacts with this component.
The typical use is to send "OnUse" to a GameObject with Dialogue System triggers that are set to "OnUse".
|
virtual |
int PixelCrushers.DialogueSystem.ThirdPersonControllerSupport.DialogueSystemInteractableTarget.GetInteractableID | ( | ) |
Returns the ID of the interactable target.
|
virtual |
Interact with the target by sending the specified message (e.g., "OnUse").
|
virtual |
Is the target ready to be interacted with?
bool PixelCrushers.DialogueSystem.ThirdPersonControllerSupport.DialogueSystemInteractableTarget.debug = false |
Set true to log debug info.
string PixelCrushers.DialogueSystem.ThirdPersonControllerSupport.DialogueSystemInteractableTarget.message = "OnUse" |
The message to send to the target.
Transform PixelCrushers.DialogueSystem.ThirdPersonControllerSupport.DialogueSystemInteractableTarget.player |
The player's transform.
If unassigned, this component will find the first GameObject tagged "Player".
Transform PixelCrushers.DialogueSystem.ThirdPersonControllerSupport.DialogueSystemInteractableTarget.target |
The recipient of the message.