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();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 4d0d2ed30df85694ea2442577faee142
|
||||
timeCreated: 1513694910
|
||||
licenseType: Store
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 14914
|
||||
packageName: NodeCanvas
|
||||
packageVersion: 3.3.1
|
||||
assetPath: Assets/ParadoxNotion/NodeCanvas/Tasks/Actions/Application/LoadScene.cs
|
||||
uploadId: 704937
|
||||
Reference in New Issue
Block a user