Quantcast
Channel: Answers by "kwokman"
Browsing latest articles
Browse All 9 View Live

Answer by kwokman

Just incase someone else just wants to simply play sound in c#, this works for me: AudioSource audio = gameObject.addComponent(); audio.PlayOneShot((AudioClip)Resources.Load("clank1"));

View Article



Answer by kwokman

You can try the simple: AudioSource audio = gameObject.AddComponent (); audio.PlayOneShot ((AudioClip)Resources.Load ("gunshot1"));

View Article

Answer by kwokman

You can try the simple: AudioSource audio = gameObject.AddComponent (); audio.PlayOneShot ((AudioClip)Resources.Load ("gunshot1"));

View Article

Answer by kwokman

You can try the simple: AudioSource audio = gameObject.AddComponent (); audio.PlayOneShot ((AudioClip)Resources.Load ("blow"));

View Article
Browsing latest articles
Browse All 9 View Live




Latest Images