using System;
using System.Collections.Generic;
using UnityEngine;
namespace BehaviorTreeSlayer
{
///
/// Agent of behavior tree,
/// This class is not required.
/// You only need to call Entry.update in the right place to drive the behavior tree to run
/// use event drive method to communicate data with outside
///
public class BehaviorTree : MonoBehaviour
{
System.Random rd = new System.Random();
public System.Random MyRandom => rd;//random inside behavior tree call
public bool AutoRun;
Dictionary> actions = new Dictionary>();
public void Regist(string key, Action