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

Detailed Description

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

Author
Alexander Art
Todo
Prevent walls from overlapping (being summoned on top of each other).

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.
 

Member Function Documentation

◆ Awake()

void ProtectiveWall.Awake ( )
private

◆ DestroyWall()

void ProtectiveWall.DestroyWall ( )

Called whenever the wall is broken. Debris spawn in place of the wall.

◆ Start()

void ProtectiveWall.Start ( )
private

◆ Update()

void ProtectiveWall.Update ( )
private

Member Data Documentation

◆ gebPhaseController

GebPhaseController ProtectiveWall.gebPhaseController
protected

Reference to Geb's phase controller.

◆ rng

System.Random ProtectiveWall.rng = new System.Random()
private

Create random number generator (for randomly displacing debris).

◆ spawnDuration

float ProtectiveWall.spawnDuration = 1f
protected

The amount of time that the spawning animation lasts.

◆ startTime

float ProtectiveWall.startTime = 0f
private

Keeps track of when this object was started. Used for calculating how long it has been around.

◆ wallDebris

GameObject ProtectiveWall.wallDebris
protected

Reference to the wall debris prefab for the debris that falls when the wall breaks.


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