IEnumerator Wait()
{
while(true)
{
yield return new WaitForSeconds(1);
myInt += 2;
}
}
Just use
myInt -= 2;
if you want it to go down.
Hope this helps!
↧