// Use this for initialization void Start() { //audioSource.Pause(); audioClips = animalsClips.GetAudioClips(type); anim = GetComponent <Animator>(); move = GetComponent <Move>(); followCurve = GetComponent <FollowCurve>(); followPath = GetComponent <SteeringFollowPath>(); }
// Start is called before the first frame update void Start() { move = GetComponent <Move>(); nav = GetComponent <SteeringFollowNavMeshPath>(); pathnav = GetComponent <SteeringFollowPath>(); if (nav.enabled && target2 != false && this.gameObject.name != "SimpleCitizens_Grandma_White") { nav.enabled = false; } if (!nav.enabled && target2 != false) { nav.enabled = true; } }