In Unity, I want to trigger an event when an audio clip finishes playing. Would it be more CPU efficient to keep checking if the audio clip is playing with
WaitUntil(() => audioSource.isPlaying == false);
or would it be more efficient to use:
to simply wait a certain amount of time?
How can I run a test in Unity to see which one is more CPU efficient?