mirror of
https://github.com/Project-Redacted/project-hampter.git
synced 2025-06-07 11:13:14 +00:00
Update :3
This commit is contained in:
parent
1f50b3f262
commit
6bbd56a5cf
759 changed files with 269694 additions and 37600 deletions
15
Assets/Scripts/LoadNextScene.cs
Normal file
15
Assets/Scripts/LoadNextScene.cs
Normal file
|
@ -0,0 +1,15 @@
|
|||
using UnityEngine;
|
||||
using UnityEngine.SceneManagement;
|
||||
|
||||
public class LoadNextScene : MonoBehaviour
|
||||
{
|
||||
public string nextSceneName; // the name of the next scene to load
|
||||
|
||||
private void OnTriggerEnter(Collider other)
|
||||
{
|
||||
if (other.CompareTag("Player"))
|
||||
{
|
||||
SceneManager.LoadScene(nextSceneName); // load the next scene
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue