Files
DougDiggem/Assets/FastTravelIcon.cs
T
2026-07-08 21:06:57 -05:00

18 lines
374 B
C#

using UnityEngine;
public class FastTravelIcon : MonoBehaviour
{
public Transform TravelLocation;
TeleportHandler TeleportHandler;
private void Start()
{
TeleportHandler = GameObject.FindWithTag("Player").GetComponent<TeleportHandler>();
}
public void GoToLocation()
{
TeleportHandler.FastTravel(TravelLocation, true);
}
}