|
TopDown Engine v4.5
|
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. | |
| virtual void | AssignObjectToCheckPoint (Respawnable listener) |
| Assigns the Respawnable to this checkpoint. | |
Public Attributes | |
| Character.FacingDirections | FacingDirection = Character.FacingDirections.East |
| the facing direction the character should face when spawning from this checkpoint | |
| bool | ForceAssignation = false |
| whether or not this checkpoint should override any order and assign itself on entry | |
| int | CheckPointOrder |
| the order of the checkpoint | |
Protected Member Functions | |
| virtual void | Awake () |
| Initializes the list of listeners. | |
| virtual void | OnTriggerEnter2D (Collider2D collider) |
| Describes what happens when something enters the checkpoint. | |
| virtual void | OnTriggerEnter (Collider collider) |
| virtual void | TriggerEnter (GameObject collider) |
| virtual void | OnDrawGizmos () |
| On DrawGizmos, we draw lines to show the path the object will follow. | |
Protected Attributes | |
| List< Respawnable > | _listeners |
Checkpoint class. Will make the player respawn at this point if it dies.
|
virtual |
Assigns the Respawnable to this checkpoint.
| listener |
|
protectedvirtual |
Initializes the list of listeners.
|
protectedvirtual |
On DrawGizmos, we draw lines to show the path the object will follow.
|
protectedvirtual |
|
protectedvirtual |
Describes what happens when something enters the checkpoint.
| collider | Something colliding with the water. |
|
virtual |
Spawns the player at the checkpoint.
| player | Player. |
|
protectedvirtual |
|
protected |
| int MoreMountains.TopDownEngine.CheckPoint.CheckPointOrder |
the order of the checkpoint
| Character.FacingDirections MoreMountains.TopDownEngine.CheckPoint.FacingDirection = Character.FacingDirections.East |
the facing direction the character should face when spawning from this checkpoint
| bool MoreMountains.TopDownEngine.CheckPoint.ForceAssignation = false |
whether or not this checkpoint should override any order and assign itself on entry