Esempio n. 1
0
 public void SetBehaviourTreeOverride(BehaviourTree behaviourTree)
 {
     BehaviourTree          = behaviourTree;
     UnitBlackboard         = BehaviourTree.Blackboard as UnitBlackboard;
     BehaviourTree.Executor = this;
     BehaviourTree.Init();
 }
Esempio n. 2
0
 protected override void Awake()
 {
     base.Awake();
     UnitBlackboard = new UnitBlackboard();
     Unit           = GetComponent <Unit>();
     Unit.OnDeath  += OnBecameDead;
     UnitBlackboard = BehaviourTree.Blackboard as UnitBlackboard;
 }
Esempio n. 3
0
 public override void Init()
 {
     AIController   = (AIController)BehaviourTree.Executor;
     Unit           = AIController.Unit;
     UnitBlackboard = (UnitBlackboard)BehaviourTree.Blackboard;
 }