// Update is called once per frame void Update() { if (InputWrapper.GetPrimary(keys) > 0 && previous <= 0.001f) { playAudioClip(Clip, volume); } previous = InputWrapper.GetPrimary(keys); }