↧
Answer by Seth-Bergman
you can't use WaitForSeconds in Update, because it's called every frame, but otherwise this should work, just remove that line.. but if you really want the pause, you can create a coroutine to call...
View ArticleAnswer by aldonaletto
You can't use *yield* inside Update or any other periodic routine (LateUpdate, FixedUpdate, OnGUI), but a very similar approach can work if started at Start (yes, Start can use *yield*!): var footsteps...
View ArticleAnswer by UnrealIzzy
**This script will do the job!** var Walk : AudioClip; function Update () { if (Input.GetKey("w") || Input.GetKey("a") || Input.GetKey("s") || Input.GetKey("d")) { if(!audio.isPlaying) // this line may...
View ArticleAnswer by DaveA
Just grab this asset: http://u3d.as/content/qlc/advanced-footstep-system/6o2
View Article