August 2018
Beginner
334 pages
10h 19m
English
This recipe requires a lot of attention due to the number of files that we will need to handle. Overall, we will create a parent class DecisionTreeNode, from which we will derive the other ones. Finally, we will learn how to implement a couple of standard decision nodes:
using UnityEngine;
using System.Collections;
public class DecisionTreeNode : MonoBehaviour
{
public virtual DecisionTreeNode MakeDecision()
{
return null;
}
}
using UnityEngine; using System.Collections; public class Decision : DecisionTreeNode ...
Read now
Unlock full access