PixelCrushers.DialogueSystem.ARPG.DSTeleporter Class Reference

Replaces ARPG's teleporter to also tie in the Dialogue System. More...

Inheritance diagram for PixelCrushers.DialogueSystem.ARPG.DSTeleporter:
Collaboration diagram for PixelCrushers.DialogueSystem.ARPG.DSTeleporter:

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
 

Detailed Description

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.

Member Enumeration Documentation

◆ ActivationMethod

Enumerator
OnTriggerEnter 
OnUse 

Member Function Documentation

◆ OnTriggerEnter()

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.

Parameters
otherOther.

◆ OnUse()

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.

Parameters
userUser.

Member Data Documentation

◆ activationMethod

ActivationMethod PixelCrushers.DialogueSystem.ARPG.DSTeleporter.activationMethod = ActivationMethod.OnTriggerEnter

◆ spawnPointName

string PixelCrushers.DialogueSystem.ARPG.DSTeleporter.spawnPointName = "PlayerSpawn1"

◆ teleportToMap

string PixelCrushers.DialogueSystem.ARPG.DSTeleporter.teleportToMap = "Level1"

The documentation for this class was generated from the following file: