feat: polish game HUD scoring and results
This commit is contained in:
@@ -69,10 +69,10 @@ namespace VRBeats
|
||||
if (audioSource == null)
|
||||
return 0.0f;
|
||||
|
||||
if (hasScheduledClip)
|
||||
return (float)(AudioSettings.dspTime - scheduledDspStartTime);
|
||||
if (hasScheduledClip || scheduledDspStartTime >= 0.0)
|
||||
return Mathf.Max(0.0f, (float)(AudioSettings.dspTime - scheduledDspStartTime));
|
||||
|
||||
return audioSource.time;
|
||||
return 0.0f;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user