![]() |
Eye of the Nile Docs
Everything you need to know to get started!
|
This is the script for Geb's earthquake zone. This script summons particles, scales the earthquake zone size, can damage the player, and can slow the player down.
Documentation updated 1/30/2025
Protected Attributes | |
GebBossController | gebBossController |
Reference to Geb's boss controller. | |
Private Member Functions | |
void | Awake () |
void | Update () |
void | OnTriggerEnter2D (Collider2D col) |
void | OnTriggerExit2D (Collider2D col) |
Private Attributes | |
GameObject | particleEffect |
Reference to the particle object that will be repeatedly instantiated at the earthquake. | |
float | maxEarthquakeSize = 25f |
float | timeBetweenParticles = 0.1f |
int | damageAmount = 10 |
float | timeBetweenDamage = 0.2f |
float | playerMoveVelocity = 6f |
System.Random | rng = new System.Random() |
Create random number generator. | |
float | particleTimer = 0f |
float | damageTimer = 0f |
List< PlayerHealth > | objectsToDamage = new() |
float | initialPlayerMoveVelocity |
float | initialParticleEffectSizeX |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
protected |
Reference to Geb's boss controller.
|
private |
|
private |
|
private |
|
private |
|
private |
Reference to the particle object that will be repeatedly instantiated at the earthquake.
|
private |
|
private |
|
private |
Create random number generator.
|
private |
|
private |