![]() |
Eye of the Nile Docs
Everything you need to know to get started!
|
Script for the walls that Geb summons. They are raised from the ground. This spawning animation can be replaced with anything once the idea is finalized. When the wall is broken, debris spawn in its place.
Documentation updated 1/11/2025
Public Member Functions | |
void | DestroyWall () |
Called whenever the wall is broken. Debris spawn in place of the wall. | |
Protected Attributes | |
GameObject | wallDebris |
Reference to the wall debris prefab for the debris that falls when the wall breaks. | |
GebPhaseController | gebPhaseController |
Reference to Geb's phase controller. | |
float | spawnDuration = 1f |
The amount of time that the spawning animation lasts. | |
Private Member Functions | |
void | Awake () |
void | Start () |
void | Update () |
Private Attributes | |
System.Random | rng = new System.Random() |
Create random number generator (for randomly displacing debris). | |
float | startTime = 0f |
Keeps track of when this object was started. Used for calculating how long it has been around. | |
|
private |
void ProtectiveWall.DestroyWall | ( | ) |
Called whenever the wall is broken. Debris spawn in place of the wall.
|
private |
|
private |
|
protected |
Reference to Geb's phase controller.
|
private |
Create random number generator (for randomly displacing debris).
|
protected |
The amount of time that the spawning animation lasts.
|
private |
Keeps track of when this object was started. Used for calculating how long it has been around.
|
protected |
Reference to the wall debris prefab for the debris that falls when the wall breaks.