Hi i was trying to make it so when i i was dragging an object using the drag ridigbody script the object would play a noise but it only seems to play the audio when you let go of it is their any way to make it play while moving?
using UnityEngine;
using System.Collections;
public class OpenSound : MonoBehaviour {
void Update ()
{
if(rigidbody.velocity.magnitude >= 0.1)
{
audio.Play();
}
}
}