![]() |
Eye of the Nile Docs
Everything you need to know to get started!
|
This script handles Geb's phases. It keeps track of the current phase or when a cutscene is playing, and detects when a new phase should be started. When a new phase is started, it tells the Geb's other scripts.
Documentation updated 4/2/2025
Public Member Functions | |
void | StartGebOpeningCutscene () |
Start Geb's opening cutscene and tell all of the other Geb scripts that the opening cutscene has started. | |
void | StartGebBossfight () |
Start phase 1 (do this after the cutscene) and tell all of the other Geb scripts that phase 1 has started. | |
void | StartGebPhase2 () |
Start phase 2 and tell all of the other Geb scripts that phase 2 has started. | |
void | StartGebPhase3 () |
Start phase 3 and tell all of the other Geb scripts that phase 3 has started. | |
void | TriggerGebDefeated () |
Set the phase to closing cutscene and tell all of the other Geb scripts that the cutscene is playing. | |
void | ClosingCutsceneEnded () |
Set the phase to defeated and tell all of the other Geb scripts that the closing cutscene is over. | |
Public Attributes | |
float | phase2Threshold = 2f/3f |
The percentage that Geb's health needs to drop below for phase 2 to start. | |
float | phase3Threshold = 1f/3f |
The percentage that Geb's health needs to drop below for phase 3 to start. | |
Protected Attributes | |
BossHealth | bossHealth |
Reference to Geb's health script, used for changing the phase when Geb reaches certain health thresholds. | |
GebBossController | bossController |
References to all of the other Geb-specific scripts. | |
GebRoomController | roomController |
Properties | |
GebPhase | phase = GebPhase.Inactive [get, private set] |
Keep track of the current phase. | |
float | phaseTime = 0.0f [get, private set] |
Used for keeping track of how long a phase has been active. Useful for controlling cutscenes. | |
Events | |
static Action | onGebDefeated |
Triggers when Geb is defeated. | |
Private Member Functions | |
void | Awake () |
Set references to Geb's health script and the Geb-specific scripts. | |
void | Update () |
Private Attributes | |
int | previousHealth |
Used for checking when the health of the boss changes. | |
|
private |
Set references to Geb's health script and the Geb-specific scripts.
void GebPhaseController.ClosingCutsceneEnded | ( | ) |
Set the phase to defeated and tell all of the other Geb scripts that the closing cutscene is over.
void GebPhaseController.StartGebBossfight | ( | ) |
Start phase 1 (do this after the cutscene) and tell all of the other Geb scripts that phase 1 has started.
void GebPhaseController.StartGebOpeningCutscene | ( | ) |
Start Geb's opening cutscene and tell all of the other Geb scripts that the opening cutscene has started.
void GebPhaseController.StartGebPhase2 | ( | ) |
Start phase 2 and tell all of the other Geb scripts that phase 2 has started.
void GebPhaseController.StartGebPhase3 | ( | ) |
Start phase 3 and tell all of the other Geb scripts that phase 3 has started.
void GebPhaseController.TriggerGebDefeated | ( | ) |
Set the phase to closing cutscene and tell all of the other Geb scripts that the cutscene is playing.
|
private |
|
protected |
References to all of the other Geb-specific scripts.
|
protected |
Reference to Geb's health script, used for changing the phase when Geb reaches certain health thresholds.
float GebPhaseController.phase2Threshold = 2f/3f |
The percentage that Geb's health needs to drop below for phase 2 to start.
float GebPhaseController.phase3Threshold = 1f/3f |
The percentage that Geb's health needs to drop below for phase 3 to start.
|
private |
Used for checking when the health of the boss changes.
|
protected |
|
getprivate set |
Keep track of the current phase.
|
getprivate set |
Used for keeping track of how long a phase has been active. Useful for controlling cutscenes.
|
static |
Triggers when Geb is defeated.