Skip to content

Instantly share code, notes, and snippets.

@Split82
Created July 24, 2018 16:54
Show Gist options
  • Save Split82/86cf4f760fd9f74509c8cdb79977e6c4 to your computer and use it in GitHub Desktop.
Save Split82/86cf4f760fd9f74509c8cdb79977e6c4 to your computer and use it in GitHub Desktop.
if (_audioSource.timeSamples >= _audioSource.clip.samples - 1) {
StopPlayingAndFinish();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment