using NodeCanvas.Framework; using ParadoxNotion.Design; using UnityEngine.SceneManagement; namespace NodeCanvas.Tasks.Actions { [Category("Application")] public class LoadScene : ActionTask { [RequiredField] public BBParameter sceneName; public BBParameter mode; protected override string info { get { return string.Format("Load Scene {0}", sceneName); } } protected override void OnExecute() { SceneManager.LoadScene(sceneName.value, mode.value); EndAction(); } } }