Every time I call FindTask it will throw NullReferenceException.
Following is my code and behavior tree setting
Unity Version : 2018.2.17f1
BehaviorDesigner Version : 1.6
Please help me to solve this problem, thanks.
Following is my code and behavior tree setting
C#:
using UnityEngine;
using BehaviorDesigner.Runtime;
using BehaviorDesigner.Runtime.Tasks;
public class TreeTester : MonoBehaviour
{
public BehaviorTree tree;
void Start ()
{
Wait wait = tree.FindTask<Wait>();
wait.waitTime = 2;
}
}
Unity Version : 2018.2.17f1
BehaviorDesigner Version : 1.6
Please help me to solve this problem, thanks.