Class TeleportPlatform
This class handles teleportation for platforms and players when they collide with the teleport trigger. It can teleport either the platform itself or a player to a specified location.
Inheritance
object
TeleportPlatform
Namespace: Player
Assembly: cs.temp.dll.dll
Syntax
public class TeleportPlatform : MonoBehaviour
Fields
isPlatform
Determines whether this script is handling a platform or a player. If true, it teleports players. If false, it teleports the platform itself.
Declaration
public bool isPlatform
Field Value
| Type | Description |
|---|---|
| bool |
playerTag
The tag used to identify player objects.
Declaration
public string playerTag
Field Value
| Type | Description |
|---|---|
| string |
teleportPoint
The position where the platform or player will be teleported.
Declaration
public Vector2 teleportPoint
Field Value
| Type | Description |
|---|---|
| Vector2 |
teleportTag
The tag used to identify objects (e.g., platforms) that can trigger teleportation.
Declaration
public string teleportTag
Field Value
| Type | Description |
|---|---|
| string |