Example #1
0
 public void OnInitialize()
 {
     AISelector = GetComponent <AIBehaviourSelector>();
     BlackBoard = GetComponent <BlackBoard>();
     BlackBoard.OnInitialize();
     AISelector.OnInitialize(BlackBoard);
 }
Example #2
0
 private void Awake()
 {
     agent      = GetComponent <NavMeshAgent>();
     animator   = GetComponentInChildren <Animator>();
     BlackBoard = this.GetComponent <BlackBoard>();
     BlackBoard.OnInitialize();
     fov = GetComponent <FieldOfView>();
 }