3DTD/Assets/Scripts/UI/SwitchScene.cs

18 lines
323 B
C#
Raw Normal View History

2024-04-21 06:07:43 +02:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class SwitchScene : MonoBehaviour
{
public void SwitchToScene(string scene)
{
SceneManager.LoadScene(scene);
}
public void QuitGame()
{
Application.Quit();
}
}