Galaxy Generator
This commit is contained in:
17
Assets/Exit.cs
Normal file
17
Assets/Exit.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.SceneManagement;
|
||||
|
||||
public class Exit : MonoBehaviour
|
||||
{
|
||||
public string sceneName;
|
||||
|
||||
// To change the scene by name
|
||||
public void changeScene()
|
||||
{
|
||||
Debug.Log("Taste exit wurde gedr<64>ckt!");
|
||||
SceneManager.LoadScene(sceneName);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user