If you already know the position you want the player to move to, check if the player collided with the trigger and set it to the teleport position
[SerializeField] private Transform teleport;
private void OnTriggerEnter( Collider other )
{
if ( other.CompareTag( "Player" ) )
{
other.transform.position = teleport.position;
}
}
Assuming this is on the trigger game object...
↧