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