second counter unity code example
Example: second counter unity
float timer = 0.0f;
void Update()
{
timer += Time.deltaTime;
int seconds = timer % 60;
}
float timer = 0.0f;
void Update()
{
timer += Time.deltaTime;
int seconds = timer % 60;
}