1
This commit is contained in:
27
Src/UnityPluginsSupport/NodeCanvas/Data/DataCommand.cs
Normal file
27
Src/UnityPluginsSupport/NodeCanvas/Data/DataCommand.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using NodeCanvas.Framework;
|
||||
using UnityEngine;
|
||||
|
||||
namespace BITKit.NodeCanvas
|
||||
{
|
||||
public sealed class CheckEnvironmentVariable:ActionTask
|
||||
{
|
||||
public BBParameter<string> key;
|
||||
protected override void OnUpdate()
|
||||
{
|
||||
if (Data.Get<bool>(key.value))
|
||||
{
|
||||
EndAction(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
public sealed class WaitUntilEnvironmentVariable:ConditionTask
|
||||
{
|
||||
public BBParameter<string> key;
|
||||
protected override bool OnCheck()
|
||||
{
|
||||
return Data.Get<bool>(key.value);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user