unity-atoms/Assets/UnityAtoms/GameActions/ChangeScene/ChangeScene.cs

22 lines
454 B
C#

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