private void Awake() { taskNetwork = GetComponent <TaskNetworkComponent>(); contextProvider = GetComponent <AIContextProvider>(); aiSight = GetComponent <AIPerceptionComponent>(); aiSteer = GetComponent <EntityAISteering>(); }
void OnEnable() { if (entity == null) entity = GetComponent<AIPerceptionComponent>(); }