24 lines
421 B
C#
Raw Permalink Normal View History

2024-08-17 14:12:46 +08:00
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;
}
}
}