Basic PUN Trouble

Options

Hello everyone-

I have been trying out PUN for the first time. After following the documentation, I got stuck on step 4 ("Game Manager & Levels"). I am at the issue where if you hit the quit button in an online room, you quit for a second and rejoin. I followed the instructions to fix this issue, but the "fix" does not work. I think I found the problem:

The very bottom line, "bool isConnecting;" is grayed out. The engine tells me that I haven't defined that command. Here is the rest of my code:


I would appreciate anything from a full completed copy and paste script, so I can fix this, or someone telling me what I did wrong. PLEASE, though, someone help me.

Answers