first commit

This commit is contained in:
Chris
2025-03-12 14:22:16 -04:00
commit 0ad0c01249
1999 changed files with 189708 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
using NodeCanvas.Framework;
using ParadoxNotion.Design;
namespace NodeCanvas.Tasks.Conditions
{
[Category("✫ Blackboard")]
[Description("Check if a boolean variable is true and if so, it is immediately reset to false.")]
public class CheckBooleanTrigger : ConditionTask
{
[BlackboardOnly]
public BBParameter<bool> trigger;
protected override string info {
get { return string.Format("Trigger {0}", trigger); }
}
protected override bool OnCheck() {
if ( trigger.value ) {
trigger.value = false;
return true;
}
return false;
}
}
}