PBG2H23ABR_PBG2H23AKL_PMC_P.../Plunderblock/Assets/Scripts/ScriptsKevin/ChangeScene.cs

17 lines
384 B
C#
Raw Normal View History

using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class ChangeScene : MonoBehaviour
{
public void changeScene(string sceneName){
SceneManager.LoadScene(sceneName);
}
public void closeScene(){
Console.WriteLine("Spiel wurde beendet");
Application.Quit();
}
}