void Hit() { audio.Play("arrowCollide"); GameObject.Destroy(gameObject); }
// Use this for initialization void Start() { audio = GameObject.FindGameObjectWithTag("GameManager").GetComponent<AudioManagerScript>(); StartCoroutine(InitiateArrow()); audio.Play("arrowShoot"); }
// Use this for initialization void Start() { audio = GameObject.FindGameObjectWithTag("GameManager").GetComponent <AudioManagerScript>(); StartCoroutine(InitiateArrow()); audio.Play("arrowShoot"); }