18 lines
354 B
C#
18 lines
354 B
C#
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ückt!");
|
|
SceneManager.LoadScene(sceneName);
|
|
}
|
|
}
|
|
|