Головна‎ > ‎Unity‎ > ‎

Телепортація

    public GameObject Player;
    public GameObject ToPoint;

    void OnTriggerEnter(Collider other
    {
         Player.transform.position = ToPoint.transform.position;
    }






transform.position = new Vector3(20f, 0f, 10f);