unity-atoms/Source/SceneManagement/ChangeScene.cs
2019-04-05 14:37:01 +02:00

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);
}
}
}