15 lines
300 B
C#
15 lines
300 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.SceneManagement;
|
|
|
|
public class UnloadScene : MonoBehaviour
|
|
{
|
|
[SerializeField] string UnloadSceneName;
|
|
|
|
public void Unload()
|
|
{
|
|
SceneManager.UnloadSceneAsync(UnloadSceneName);
|
|
}
|
|
}
|