Skip to content

Instantly share code, notes, and snippets.

@curious-username
Last active October 16, 2021 04:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save curious-username/7507e601f80d1eaf13aa67498a5256b8 to your computer and use it in GitHub Desktop.
Save curious-username/7507e601f80d1eaf13aa67498a5256b8 to your computer and use it in GitHub Desktop.
count down timer
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