I have an Array of strings. What I have done Is set up a command prompt in unity. When I press enter I want my script to see if the entered text is the same as any in my string array, and if it is, execute the appropriate command.
For example; If I type “/home” I want to press enter and for my script to find “/home” in my array, and then I want it to execute the appropriate command. (Which is just changing the scene)
Thank you!