Skip to content

Instantly share code, notes, and snippets.

@walkies
Created June 11, 2018 08:53
Show Gist options
  • Save walkies/56b112859148c593c27526cd9b0f8788 to your computer and use it in GitHub Desktop.
Save walkies/56b112859148c593c27526cd9b0f8788 to your computer and use it in GitHub Desktop.
pitch increase over time
public IEnumerator StartCountdown(int countdownValue = 100)
{
currentTime = countdownValue;
while (currentTime > 0)
{
yield return new WaitForSeconds(1.0f);
currentTime--;
audio1.pitch = audio1.pitch + 0.0003f;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment