mirror of
https://github.com/unity-atoms/unity-atoms.git
synced 2025-01-24 09:08:23 -05:00
22 lines
454 B
C#
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);
|
|
}
|
|
}
|
|
|
|
}
|
|
|