Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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