hole, scene management
This commit is contained in:
@@ -1,16 +1,14 @@
|
||||
using UnityEngine;
|
||||
using UnityEngine.SceneManagement;
|
||||
|
||||
public class SceneController : MonoBehaviour
|
||||
{
|
||||
// Start is called once before the first execution of Update after the MonoBehaviour is created
|
||||
void Start()
|
||||
{
|
||||
|
||||
}
|
||||
public int sceneIndex;
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
private void OggerEnter2D(Collider2D collision)
|
||||
{
|
||||
|
||||
Debug.Log("Hole");
|
||||
SceneManager.LoadScene(sceneIndex, LoadSceneMode.Single);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user