
The "Equals" function doesn't make two things equal, it tests whether two things are already equal.
Iconie does not recognize png code#
Third, most of your code makes absolutely no sense, and would have no visible effects even if it did run. If the message doesn't show up, then the problem is with something outside the function-it never got started in the first place. If that message shows up, then you know the function got called, and so if it didn't do what you want, there's something wrong inside the function. If you want to test whether your code is even running, use Debug.Log() to write something to the console at the top of the function. If you haven't done that, then Unity won't even try to run your code, because you didn't ask it to. If you make up your own functions, you also need to tell the program when you want to execute them. Second, you haven't shown anything that calls the specific functions you defined in your code, like Low(). If you get run-time errors, then the specific function that threw the error will abort (which means none of the code behind it in that function will run), but Unity will try to continue running other parts of your game. Note that if you get compile-time errors, then Unity will stop compiling your code and you won't be able to run at all. Based on what I can see of the error, it's probably not coming from the specific file you are editing, but it could still be blocking you.

If you switch to the "Console" window, you'll be able to see if there are more errors, and (usually) where in the code they are being thrown. First, you can see at the bottom of your screenshot that you are getting at least one error.
