28 lines
532 B
C#
28 lines
532 B
C#
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);
|
|
}
|
|
}
|
|
}
|