Last active
October 16, 2021 04:12
-
-
Save curious-username/7507e601f80d1eaf13aa67498a5256b8 to your computer and use it in GitHub Desktop.
count down timer
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
private float _countDown = 3; | |
IEnumerator CountDown() | |
{ | |
while(_countDown > 0) | |
{ | |
yield return new WaitForSeconds(1.0f); | |
_countDown--; | |
} | |
_rateOverTimeValue = 0; | |
_charging.SetActive(false); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment