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;
        }
    }
}