Created
June 11, 2018 08:53
-
-
Save walkies/56b112859148c593c27526cd9b0f8788 to your computer and use it in GitHub Desktop.
pitch increase over time
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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