Karto
Need pointers on code for console app.
I also wanted to ask about where to handle the recieved input. We have the validator to mask out completely irrelevant responses, I was thinking of ways to pass in what should happen when each particular choice is picked similarly, but then figured it might be easier to just get back a valid response and run conditional logic on the recieved response. What do you think?
44 replies
Need pointers on code for console app.
@Pobiega
Input.cs
I've refactored my code to be a lot neater thanks to your help. Both the GetChoiceFromArray()
and GetKey()
methods have a while loop in them, so I feel the urge to get rid of the while loop in Start()
but I also have the feeling that it's fine to leave it in. Does the refactored code make sense?44 replies