Easy Teleporter System in Unity | Tutorial #2| |WinceGames|

Опубликовано: 09 Май 2026
на канале: Wince Games
68
5

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;
}
}
}