So, I have 3 questions actually:
-
If I am typing 3 as my choice but there are only 2 options, for example, does that mean that Unity casts the current state again? Because in the for loop the Input condition is false, it does not enter the if statement’s block - and that means that we are not updating the state array variable (=nextState[index]) so this variable should be the same - equal to the current state. Is what I’m saying true? If so, how could we overcome this if the state contains not just text but animation / audio or something that needs to load and consumes frames or time as opposed to text and pictures. Will it cast the same state again and again after pressing number that is not in the options although it’s not just text.?
-
In question 1 I assumed that after the user inputs some value, C# stores this input under Input type in the temporary memory and then we can have some statements on this Input value that was stored later on. Is my assumption true?
-
The last question: is Input type waits until the user actually type in something like in other languages (Python for example)? There the program does not continue until the user enters something.
I am coming from Python programming so that’s why I asked those questions - to understand better how C# works.
Thanks, I know it’s long.