Corgi Engine
v9.0
|
Checkpoint class. Will make the player respawn at this point if it dies. More...
Public Member Functions | |
virtual void | SpawnPlayer (Character player) |
Spawns the player at the checkpoint. More... | |
virtual void | AssignObjectToCheckPoint (Respawnable listener) |
Public Attributes | |
Character.FacingDirections | FacingDirection = Character.FacingDirections.Right |
the direction the character should face when spawning at this checkpoint More... | |
bool | ForceAssignation = false |
whether or not this checkpoint should override any order and assign itself on entry More... | |
int | CheckPointOrder |
the order of the checkpoint More... | |
bool | CanBeReachedMoreThanOnce = true |
whether or not this checkpoint can be reached more than once More... | |
UnityEvent | OnCheckpointReached |
an event to trigger when this checkpoint is reached More... | |
Protected Member Functions | |
virtual void | Awake () |
Initializes the list of listeners More... | |
virtual void | OnTriggerEnter2D (Collider2D collider) |
Describes what happens when something enters the checkpoint More... | |
virtual void | OnDrawGizmos () |
On DrawGizmos, we draw lines to show the path the object will follow More... | |
Protected Attributes | |
bool | _reached = false |
List< Respawnable > | _listeners |
Checkpoint class. Will make the player respawn at this point if it dies.
|
virtual |
|
protectedvirtual |
Initializes the list of listeners
|
protectedvirtual |
On DrawGizmos, we draw lines to show the path the object will follow
|
protectedvirtual |
Describes what happens when something enters the checkpoint
collider | The Collider2D colliding with the checkpoint. |
|
virtual |
Spawns the player at the checkpoint.
player | Player. |
|
protected |
|
protected |
bool MoreMountains.CorgiEngine.CheckPoint.CanBeReachedMoreThanOnce = true |
whether or not this checkpoint can be reached more than once
int MoreMountains.CorgiEngine.CheckPoint.CheckPointOrder |
the order of the checkpoint
Character.FacingDirections MoreMountains.CorgiEngine.CheckPoint.FacingDirection = Character.FacingDirections.Right |
the direction the character should face when spawning at this checkpoint
bool MoreMountains.CorgiEngine.CheckPoint.ForceAssignation = false |
whether or not this checkpoint should override any order and assign itself on entry
UnityEvent MoreMountains.CorgiEngine.CheckPoint.OnCheckpointReached |
an event to trigger when this checkpoint is reached