add world map and fast travel
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user