Send information from unity to arduino

Is the Arduino connected to COM3? Is any other application, like the Serial Monitor, also using COM3?

Since you are sending "2", that is NOT going to equal 2 on the Arduino. One of the characters in the string will match '2'.