using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class teleport : MonoBehaviour
{
public GameObject Teleport2;
private void OnTriggerEnter(Collider other)
{
if(other.gameObject.tag == "Teleport")
{
transform.position = Teleport2.transform.position;
}
}
}