mirror of
https://github.com/unity-atoms/unity-atoms.git
synced 2025-01-23 16:48:23 -05:00
20 lines
413 B
C#
20 lines
413 B
C#
using UnityEngine;
|
|
using UnityEngine.SceneManagement;
|
|
|
|
namespace UnityAtoms
|
|
{
|
|
[CreateAssetMenu(menuName = "Unity Atoms/Scene Management/Void Actions/Change Scene")]
|
|
public class ChangeScene : VoidAction
|
|
{
|
|
[SerializeField]
|
|
private StringReference SceneName = null;
|
|
|
|
public override void Do()
|
|
{
|
|
SceneManager.LoadScene(SceneName.Value);
|
|
}
|
|
}
|
|
|
|
}
|
|
|