![]() |
Eye of the Nile Docs
Everything you need to know to get started!
|
This script animates and despawns a warning message that appears in the Skyhub when the player attempts to upgrade an ability that is already at its maximum level or when the player does not have enough currency. (This script could probably be replaced by an animator.)
Documentation updated 2/7/2025
Protected Attributes | |
float | raiseTime = 0.25f |
The duration of the first part of the warning message's animation (spawning animation). | |
float | hoverTime = 1f |
The duration of the middle part of the warning message's animation. | |
float | fallTime = 0.5f |
The duration of the last part of the warning message's animation (disappearing animation). | |
float | raiseDistance = 90f |
How far the warning message raises in the first part of the animation. | |
float | fallDistance = 110f |
How far the warning message falls in the last part of the animation. | |
Private Member Functions | |
void | Start () |
void | Update () |
Private Attributes | |
TMP_Text | textMeshPro |
Reference to the text of the warning message object. | |
float | timeSpawned |
The game time at which this object was instantiated. | |
|
private |
|
private |
|
protected |
How far the warning message falls in the last part of the animation.
|
protected |
The duration of the last part of the warning message's animation (disappearing animation).
|
protected |
The duration of the middle part of the warning message's animation.
|
protected |
How far the warning message raises in the first part of the animation.
|
protected |
The duration of the first part of the warning message's animation (spawning animation).
|
private |
Reference to the text of the warning message object.
|
private |
The game time at which this object was instantiated.