Eye of the Nile Docs
Everything you need to know to get started!
Loading...
Searching...
No Matches
SpeechBubble Class Reference

Detailed Description

This script controls the functionality of the speech bubbles/messages that are triggered when the player gets within range.

Documentation updated 4/13/2025

Author
Alexander Art

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 ()
 

Member Function Documentation

◆ ActivateMessage()

void SpeechBubble.ActivateMessage ( )
private

◆ DeactivateMessage()

void SpeechBubble.DeactivateMessage ( )
private

◆ Update()

void SpeechBubble.Update ( )
private

Member Data Documentation

◆ detectionRange

float SpeechBubble.detectionRange = 4f
protected

How close the player must be for the message to appear.

◆ message

GameObject SpeechBubble.message
protected

The GameObject that will appear as a speech bubble.

◆ messageActive

bool SpeechBubble.messageActive = false
protected

True if the message is active (visible).

◆ messageAnimator

Animator SpeechBubble.messageAnimator

◆ playerInRange

bool SpeechBubble.playerInRange = false
protected

True if the player is close enough for the message to appear.

◆ playerLayer

LayerMask SpeechBubble.playerLayer
protected

Objects on this layer are detected as the player.


The documentation for this class was generated from the following file: