![]() |
Eye of the Nile Docs
Everything you need to know to get started!
|
Basic component of StageWarp.prefab that stores basic information about the it, including the warp name, destination name, and warp type.
Documentation updated 9/15/2024
Public Attributes | |
string | srcWarpName = "DEFAULT_SOURCE" |
Name of this warp. Used to identify it when connecting another warp to this one as its destination. | |
string | destWarpName = "DEFAULT_DESTINATION" |
Name of the destination warp. This is the warp the player will be teleported to after traveling through this one. | |
StageWarpType | warpType = StageWarpType.DirectExit |
The type of warp functionality this warp will have. A DirectExit will immediately warp the player upon entering the warp zone, while DoorExit requires the player to give upwards input. | |
string | sceneToWarpTo |
Name of the scene the destination warp is in. If it's in the same scene, use "this". | |
Protected Attributes | |
Transform | entryPoint |
Reference to the StageWarp's entry point, which is a transform and a child of StageWarp.prefab. It's the position the player will spawn at when it warps to this StageWarp (the "spawnpoint"). | |
Properties | |
Vector2 | EntryPos [get] |
The coordinates of this StageWarp's entry point, which is just entryPoint.position. | |
Private Member Functions | |
void | Awake () |
Set refernce to the entry point. | |
|
private |
Set refernce to the entry point.
string StageWarp.destWarpName = "DEFAULT_DESTINATION" |
Name of the destination warp. This is the warp the player will be teleported to after traveling through this one.
|
protected |
Reference to the StageWarp's entry point, which is a transform and a child of StageWarp.prefab. It's the position the player will spawn at when it warps to this StageWarp (the "spawnpoint").
string StageWarp.sceneToWarpTo |
Name of the scene the destination warp is in. If it's in the same scene, use "this".
string StageWarp.srcWarpName = "DEFAULT_SOURCE" |
Name of this warp. Used to identify it when connecting another warp to this one as its destination.
StageWarpType StageWarp.warpType = StageWarpType.DirectExit |
The type of warp functionality this warp will have. A DirectExit will immediately warp the player upon entering the warp zone, while DoorExit requires the player to give upwards input.
|
get |
The coordinates of this StageWarp's entry point, which is just entryPoint.position.