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