Пример #1
0
 void Hit()
 {
     audio.Play("arrowCollide");
     GameObject.Destroy(gameObject);
 }
Пример #2
0
 // Use this for initialization
 void Start()
 {
     audio = GameObject.FindGameObjectWithTag("GameManager").GetComponent<AudioManagerScript>();
     StartCoroutine(InitiateArrow());
     audio.Play("arrowShoot");
 }
Пример #3
0
 // Use this for initialization
 void Start()
 {
     audio = GameObject.FindGameObjectWithTag("GameManager").GetComponent <AudioManagerScript>();
     StartCoroutine(InitiateArrow());
     audio.Play("arrowShoot");
 }