Replaces ARPG's teleporter to also tie in the Dialogue System. More...
Public Types | |
enum | ActivationMethod { ActivationMethod.OnTriggerEnter, ActivationMethod.OnUse } |
Public Member Functions | |
void | OnTriggerEnter (Collider other) |
If the player enters the trigger collider and the activation method is OnTriggerEnter, then teleport to the new level. More... | |
void | OnUse (Transform user) |
If the player "uses" the teleporter and the activation method is OnUse, then teleport to the new level. More... | |
Public Attributes | |
string | teleportToMap = "Level1" |
string | spawnPointName = "PlayerSpawn1" |
ActivationMethod | activationMethod = ActivationMethod.OnTriggerEnter |
Replaces ARPG's teleporter to also tie in the Dialogue System.
You can set it to activate when the player enters the trigger collider (like ARPG's teleporter) or when the player uses it by pressing the ProximitySelector's "Use" key ("E" by default). In this case, add a Usable component to the teleporter.
void PixelCrushers.DialogueSystem.ARPG.DSTeleporter.OnTriggerEnter | ( | Collider | other | ) |
If the player enters the trigger collider and the activation method is OnTriggerEnter, then teleport to the new level.
other | Other. |
void PixelCrushers.DialogueSystem.ARPG.DSTeleporter.OnUse | ( | Transform | user | ) |
If the player "uses" the teleporter and the activation method is OnUse, then teleport to the new level.
The teleporter should have a Usable component.
user | User. |
ActivationMethod PixelCrushers.DialogueSystem.ARPG.DSTeleporter.activationMethod = ActivationMethod.OnTriggerEnter |
string PixelCrushers.DialogueSystem.ARPG.DSTeleporter.spawnPointName = "PlayerSpawn1" |
string PixelCrushers.DialogueSystem.ARPG.DSTeleporter.teleportToMap = "Level1" |