Pro Reset Game
Loading...
Searching...
No Matches
OnCollisionTeleport Class Reference

Simple demo component that teleports a target Transform to a fixed position when this collider is struck.
The teleport can run immediately or after a cooldown, and a UI label shows the remaining time in seconds. More...

Inheritance diagram for OnCollisionTeleport:

Detailed Description

Simple demo component that teleports a target Transform to a fixed position when this collider is struck.
The teleport can run immediately or after a cooldown, and a UI label shows the remaining time in seconds.

• When the TextMesh Pro package is available the label is a TMPro.TextMeshProUGUI; otherwise a legacy Text.
• The cooldownTimer field is tagged [Saveable] so the Pro Reset Game system can persist mid-cooldown states between plays.


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