Heroes_of_Hiis/Assets/Project Files/Scripts/Shumpei/EnterGameScene.cs

17 lines
328 B
C#
Raw Permalink Normal View History

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class EnterGameScene : MonoBehaviour
{
private void OnTriggerEnter(Collider other)
{
if (other.tag == "Player")
{
SceneManager.LoadScene("GameScene");
}
}
}