MvC
Просветленный
(36565)
1 месяц назад
вот так попробуй
---
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class Teleport : MonoBehaviour
{
void OnTriggerEnter(Collider myCollider)
{
if (myCollider.CompareTag("Player"))
{
SceneManager.LoadScene("Forest");
}
}
}
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Teleport : MonoBehaviour
{
void OnTriggerEnter (Collider myCollider)
{
if (myCollider.tag == ("Player"))
{
SceneManager.LoadScene("Forest");
}
}
}