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

Detailed Description

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

Author
Alexander Art

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.
 

Member Function Documentation

◆ Start()

void UpgradeWarningMessage.Start ( )
private

◆ Update()

void UpgradeWarningMessage.Update ( )
private

Member Data Documentation

◆ fallDistance

float UpgradeWarningMessage.fallDistance = 110f
protected

How far the warning message falls in the last part of the animation.

◆ fallTime

float UpgradeWarningMessage.fallTime = 0.5f
protected

The duration of the last part of the warning message's animation (disappearing animation).

◆ hoverTime

float UpgradeWarningMessage.hoverTime = 1f
protected

The duration of the middle part of the warning message's animation.

◆ raiseDistance

float UpgradeWarningMessage.raiseDistance = 90f
protected

How far the warning message raises in the first part of the animation.

◆ raiseTime

float UpgradeWarningMessage.raiseTime = 0.25f
protected

The duration of the first part of the warning message's animation (spawning animation).

◆ textMeshPro

TMP_Text UpgradeWarningMessage.textMeshPro
private

Reference to the text of the warning message object.

◆ timeSpawned

float UpgradeWarningMessage.timeSpawned
private

The game time at which this object was instantiated.


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