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,26 @@
using NodeCanvas.Framework;
using ParadoxNotion.Design;
using UnityEngine;
namespace NodeCanvas.Tasks.Actions
{
[Category("✫ Blackboard")]
[Description("Set a blackboard boolean variable at random between min and max value")]
public class SetBooleanRandom : ActionTask
{
[BlackboardOnly]
public BBParameter<bool> boolVariable;
protected override string info {
get { return "Set " + boolVariable + " Random"; }
}
protected override void OnExecute() {
boolVariable.value = Random.Range(0, 2) == 0 ? false : true;
EndAction();
}
}
}