|
Eye of the Nile Docs
Everything you need to know to get started!
|
This script controls the functionality of the speech bubbles/messages that are triggered when the player gets within range.
Documentation updated 4/13/2025
Public Attributes | |
| Animator | messageAnimator |
Protected Attributes | |
| LayerMask | playerLayer |
| Objects on this layer are detected as the player. | |
| GameObject | message |
| The GameObject that will appear as a speech bubble. | |
| float | detectionRange = 4f |
| How close the player must be for the message to appear. | |
| bool | playerInRange = false |
| True if the player is close enough for the message to appear. | |
| bool | messageActive = false |
| True if the message is active (visible). | |
Private Member Functions | |
| void | ActivateMessage () |
| void | DeactivateMessage () |
| void | Update () |
|
private |
|
private |
|
private |
|
protected |
How close the player must be for the message to appear.
|
protected |
The GameObject that will appear as a speech bubble.
|
protected |
True if the message is active (visible).
| Animator SpeechBubble.messageAnimator |
|
protected |
True if the player is close enough for the message to appear.
|
protected |
Objects on this layer are detected as the player.