This script is scene-specific to MemphisIndoors_2. It is used for making the sun shrine fall.
Documentation updated 3/25/2025
- Author
- Alexander Art
|
| void | StartFalling () |
| | Used by InvokeOnInteract on the sun shrine to activate its gravity once the player interacts with it.
|
| |
|
| Rigidbody2D | rb |
| | Reference to the sun shrine's Rigidbody2D component.
|
| |
| Transform | player |
| | Reference to the player's transform. Used for checking where the player is.
|
| |
| GameObject | destructibleWall |
| | Reference to the destructible wall. Gets removed immediately if the player enters from the StageWarp on the right (the exit).
|
| |
| float | maxFallDistance = 23f |
| | The sun shrine's collision is an illusion. The statue only stops falling once this distance has been reached.
|
| |
| float | initialHeight |
| | Initial y-position of the sun shrine.
|
| |
| float | initialGravityScale |
| | Initial gravity scale of the sun shrine.
|
| |
|
| void | Start () |
| | Initialize the state of the sun shrine.
|
| |
| void | Update () |
| |
◆ Start()
| void MemphisIndoors_2.Start |
( |
| ) |
|
|
private |
Initialize the state of the sun shrine.
◆ StartFalling()
| void MemphisIndoors_2.StartFalling |
( |
| ) |
|
Used by InvokeOnInteract on the sun shrine to activate its gravity once the player interacts with it.
◆ Update()
| void MemphisIndoors_2.Update |
( |
| ) |
|
|
private |
Limit how far the sun shrine can fall.
◆ destructibleWall
| GameObject MemphisIndoors_2.destructibleWall |
|
protected |
Reference to the destructible wall. Gets removed immediately if the player enters from the StageWarp on the right (the exit).
◆ initialGravityScale
| float MemphisIndoors_2.initialGravityScale |
|
protected |
Initial gravity scale of the sun shrine.
◆ initialHeight
| float MemphisIndoors_2.initialHeight |
|
protected |
Initial y-position of the sun shrine.
◆ maxFallDistance
| float MemphisIndoors_2.maxFallDistance = 23f |
|
protected |
The sun shrine's collision is an illusion. The statue only stops falling once this distance has been reached.
◆ player
| Transform MemphisIndoors_2.player |
|
protected |
Reference to the player's transform. Used for checking where the player is.
◆ rb
| Rigidbody2D MemphisIndoors_2.rb |
|
protected |
Reference to the sun shrine's Rigidbody2D component.
The documentation for this class was generated from the following file: