mirror of
https://github.com/unity-atoms/unity-atoms.git
synced 2025-01-30 11:52:51 -05:00
30 lines
792 B
C#
30 lines
792 B
C#
// using UnityEngine;
|
|
// using UnityEngine.SceneManagement;
|
|
// using UnityEngine.Serialization;
|
|
|
|
// namespace UnityAtoms.SceneMgmt
|
|
// {
|
|
// /// <summary>
|
|
// /// Action to change scene.
|
|
// /// </summary>
|
|
// [EditorIcon("atom-icon-purple")]
|
|
// [CreateAssetMenu(menuName = "Unity Atoms/Actions/Scene Management/Change Scene")]
|
|
// public sealed class ChangeScene : VoidAction
|
|
// {
|
|
// /// <summary>
|
|
// /// Scene to change to.
|
|
// /// </summary>
|
|
// [SerializeField]
|
|
// private StringReference _sceneName = null;
|
|
|
|
// /// <summary>
|
|
// /// Change the scene.
|
|
// /// </summary>
|
|
// public override void Do()
|
|
// {
|
|
// SceneManager.LoadScene(_sceneName.Value);
|
|
// }
|
|
// }
|
|
// }
|
|
|