2018-11-13 19:48:17 +01:00

22 lines
455 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
namespace UnityAtoms
{
[CreateAssetMenu(menuName = "Unity Atoms/Game Actions/Change Scene")]
public class ChangeScene : VoidAction
{
[SerializeField]
private string SceneName;
public override void Do()
{
SceneManager.LoadScene(SceneName);
}
}
}