first commit
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
using NodeCanvas.Framework;
|
||||
using ParadoxNotion.Design;
|
||||
using UnityEngine.SceneManagement;
|
||||
|
||||
namespace NodeCanvas.Tasks.Actions
|
||||
{
|
||||
|
||||
[Category("Application")]
|
||||
public class LoadScene : ActionTask
|
||||
{
|
||||
|
||||
[RequiredField]
|
||||
public BBParameter<string> sceneName;
|
||||
public BBParameter<LoadSceneMode> mode;
|
||||
|
||||
protected override string info {
|
||||
get { return string.Format("Load Scene {0}", sceneName); }
|
||||
}
|
||||
|
||||
protected override void OnExecute() {
|
||||
SceneManager.LoadScene(sceneName.value, mode.value);
|
||||
EndAction();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user