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

19 lines
361 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)
{
2024-04-21 14:17:50 +02:00
GameManager.Instance.Reset();
2024-04-21 06:07:43 +02:00
SceneManager.LoadScene(scene);
}
public void QuitGame()
{
Application.Quit();
}
}