Hello,
I have some basic questions in regard of the code and if my understanding is correct.
It would be great if somebody could tell me if I got it right.
So first we create a variable called timer of type Timer (So I suspect that the type refers to the Timer class we created). So the variable type is a class we created ourselves like the question variable of type QuestionSO?
Then we store a reference to the Timer script (and not the Timer game object) which is a component of the Timer game object in the timer variable with: timer = FindObjectOfType Timer
Why is that additional reference needed? I can’t really wrap my head around it. I mean we have defined a variable timer (of type timer class), isn’t that enough to call the methods stored in timer class? Like with the question variable of type QuestionSO?
Thanks