// Use this for initialization void Start () { target = transform; //set target to self when not hostile targetLocation = transform.position; animRa = GetComponent<animation_ctrl_rangedEn> (); sounds = this.GetComponents<AudioSource>(); shootSoundSource = sounds[1]; }
// Use this for initialization void Start() { target = transform; //set target to self when not hostile targetLocation = transform.position; animRa = GetComponent <animation_ctrl_rangedEn> (); sounds = this.GetComponents <AudioSource>(); shootSoundSource = sounds[1]; }