// 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];
	}
Ejemplo n.º 2
0
    // 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];
    }