![]() |
Eye of the Nile Docs
Everything you need to know to get started!
|
Additional script for the rock golems in Geb's bossroom. What this script does:
Documentation updated 1/28/2025
Public Member Functions | |
void | Die () |
Activated by onGebDefeated event when Geb is defeated. | |
void | DecrementRockGolemCount () |
Subtracts 1 from Geb's bossroom's rock golem count. Called by the rock golem's ObjectHealth when it dies. | |
Protected Attributes | |
ObjectHealth | objectHealth |
Reference to the rock golem's health script. | |
GebPhaseController | gebPhaseController |
Reference to Geb's phase controller. | |
GebRoomController | gebRoomController |
Reference to Geb's room controller. | |
float | maxOutOfBoundsRange = 25f |
There is an additional range outside of the bounds of Geb's bossroom where the rock golems can spawn but the player can't go. | |
Private Member Functions | |
void | Awake () |
void | OnEnable () |
Subscribes to the GebPhaseController.onGebDefeated event. | |
void | OnDisable () |
Unsubscribes from the GebPhaseController.onGebDefeated event. | |
void | Start () |
void | Update () |
Prevent the rock golems from getting stuck in the wall and get rid of the golems when Geb is defeated. | |
Private Attributes | |
float | minPosX |
The minimum x position that the rock golems can have. Calculated using the golem's width and the bounds of the room. | |
float | maxPosX |
The maximum x position that the rock golems can have. Calculated using the golem's width and the bounds of the room. | |
|
private |
void GebRockGolem.DecrementRockGolemCount | ( | ) |
Subtracts 1 from Geb's bossroom's rock golem count. Called by the rock golem's ObjectHealth when it dies.
void GebRockGolem.Die | ( | ) |
Activated by onGebDefeated event when Geb is defeated.
|
private |
Unsubscribes from the GebPhaseController.onGebDefeated event.
|
private |
Subscribes to the GebPhaseController.onGebDefeated event.
|
private |
|
private |
Prevent the rock golems from getting stuck in the wall and get rid of the golems when Geb is defeated.
|
protected |
Reference to Geb's phase controller.
|
protected |
Reference to Geb's room controller.
|
protected |
There is an additional range outside of the bounds of Geb's bossroom where the rock golems can spawn but the player can't go.
|
private |
The maximum x position that the rock golems can have. Calculated using the golem's width and the bounds of the room.
|
private |
The minimum x position that the rock golems can have. Calculated using the golem's width and the bounds of the room.
|
protected |
Reference to the rock golem's health script.