A projectile used in Geb's ability set that spawns an earthquake where it lands.
Documentation updated 11/13/2024
- Author
- Stephen Nuttall
|
void | FlipDirection () |
|
GameObject | sprite |
| Reference to the game object that holds the sprite renderer of the projectile. Often this is just the projectile itself, but sometimes there's a child with the sprite. This allows compatability with both systems.
|
|
int | damage = 30 |
| The amount of damage the projectile will apply if it comes in contact with something it can damage.
|
|
bool | damagePlayers = true |
| If true, the projectile can damage the player.
|
|
bool | damageNonPlayers = true |
| If true, the projectile can damage objects that aren't the player (assuming they have an ObjectHealth component).
|
|
bool | destroyOnImpact = true |
| If true, the projectile will destroy itself when it hits something (regardless of if it can damage it or now).
|
|
EventReference | spawnSFX |
| Sound effect that plays when the projectile is spawned in.
|
|
bool | flipSprite = true |
| When facingLeft is true, the sprite will be flipped. Usually used to make the sprite "face the way the projectile is moving.".
|
|
int | refDamage [get, private set] |
| A mirror of damage that allows for other objects to read its value without changing it, and also allowing damage to appear in the Unity Editor.
|
|
bool | facingLeft = false [get, private set] |
| True if the projectile is facing (and thus moving) to the left. Likewise, false if the projectile is facing to the right.
|
|