19 lines
361 B
C#
19 lines
361 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.SceneManagement;
|
|
|
|
public class SwitchScene : MonoBehaviour
|
|
{
|
|
public void SwitchToScene(string scene)
|
|
{
|
|
GameManager.Instance.Reset();
|
|
SceneManager.LoadScene(scene);
|
|
}
|
|
|
|
public void QuitGame()
|
|
{
|
|
Application.Quit();
|
|
}
|
|
}
|