临时提交

This commit is contained in:
PC-20230316NUNE\Administrator
2024-08-17 14:12:46 +08:00
parent 98bead1a7c
commit 3afb2e3b86
279 changed files with 20594 additions and 285 deletions

View File

@@ -0,0 +1,24 @@
namespace BehaviorTreeSlayer
{
public class Log : ActionNode
{
[OutField]
public string Text = "";
public Log()
{
}
public Log(string text)
{
Text = text;
}
public override TaskResult Tick(double dt, object args = null)
{
UnityEngine.Debug.Log(Text);
return TaskResult.OK;
}
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 12eb3d1ed40dd6841a70f69a5dbab9b5
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {fileID: -5442936267250999957, guid: 0000000000000000d000000000000000, type: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,33 @@
using System.Xml.Serialization;
namespace BehaviorTreeSlayer
{
public class Wait : ActionNode
{
[OutField]
public double time = 3;
double t;
[ShowMe]
private double timer;
public Wait()
{
}
public Wait(double time)
{
this.time = time;
}
public override TaskResult Tick(double dt, object args = null)
{
timer += dt;
if (timer >= time)
{
UnityEngine.Debug.Log(timer);
timer = 0;
return TaskResult.OK;
}
return TaskResult.Running;
}
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 8757ac0a11021a34da305a81f5b8b230
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {fileID: 3306451490063965843, guid: 0000000000000000d000000000000000, type: 0}
userData:
assetBundleName:
assetBundleVariant: