16 lines
294 B
C#
16 lines
294 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.SceneManagement;
|
|
|
|
public class SceneChanger : MonoBehaviour
|
|
{
|
|
public void ChangeScene(string sceneName)
|
|
{
|
|
SceneManager.LoadScene(sceneName);
|
|
}
|
|
public void Exit()
|
|
{
|
|
Application.Quit();
|
|
}
|
|
} |