Hello,
I’m working on a project at the moment that requires a counter to increment once per second until it reaches a variable I can define later. In my head it makes sense however when I run the code I am getting strange results. I’ve read online that the timescale settings can be off so I’ve attached what they are, as well as the code and the outputs I’m getting.
I hope this all helps
if (ls_v && rs_h)
{
//outcome = "Correct";
float counter = 0f;
counter += Time.deltaTime;
Debug.Log(counter);
if (counter == 3f)
{
outcome = "Correct";
isPreaching = false;
Complete();
}
}