If the match is found, you will have to get the next element of the split, the new state. The only problem is that it is in string form, so it will need to be converted to an integer using parseInt() before you can use it. Note that parseInt() is one of the exceptions to the capitalization rule in Unity’s version of JavaScript.
10. Add the following below the line you just added: