Example #1
0
 /// <summary>
 /// Calculates the distance between this action and a child
 /// </summary>
 /// <param name="child">The child action</param>
 /// <returns>Return the distance</returns>
 protected virtual float DistanceToChild(GoapAction child)
 {
     return(Vector3.Distance(position, child.position));
 }