private void Awake() { chasingMode = GetComponent <ChasingHunter>(); attackingMode = GetComponent <AttackingHunter>(); cameraVisibilityChecker = GetComponent <CameraVisibilityChecker>(); chasingMode.setActive(false); }
void Start() { visibilityChecker = GetComponent <CameraVisibilityChecker>(); if (StartAtCurrentWaypoint) { transform.position = PathToFollow.path_objs [CurrentWayPointID].position; transform.rotation = Quaternion.LookRotation(PathToFollow.path_objs [CurrentWayPointID + 1].position - transform.position); } animator.speed = animationSpeed; if (GetComponent <Activate_with_Tree> ().activate == false) { state = ShadeWaitState.Dormant; StopAnimation = true; audio.PlayAudio(false); } activate_with_Tree = GetComponent <Activate_with_Tree>(); detectShade = GetComponentInChildren <DetectShade>(); }
void Start() { navMeshAgent = GetComponent <NavMeshAgent>(); visibilityChecker = GetComponent <CameraVisibilityChecker>(); }