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,29 @@
using NodeCanvas.Framework;
using ParadoxNotion.Design;
using UnityEngine;
namespace NodeCanvas.Tasks.Actions
{
[Category("GameObject")]
[Description("Find a transform child by name within the agent's transform")]
public class FindChildByName : ActionTask<Transform>
{
[RequiredField]
public BBParameter<string> childName;
[BlackboardOnly]
public BBParameter<Transform> saveAs;
protected override string info {
get { return string.Format("{0} = {1}.FindChild({2})", saveAs, agentInfo, childName); }
}
protected override void OnExecute() {
var result = agent.Find(childName.value);
saveAs.value = result;
EndAction(result != null);
}
}
}