Connection lost: Load scene. Help!

In Unity can i create a class that will never break down? I ask because I have a class server and I do not want this class to be destroyed and lost connection. DontDestroyOnLoad not helping…for some reason when I Load new scene connection lost…Im using Photon engine as a Server.

That class should be global, and not destroyed on while whole game life time. Maybe i should create another thread or something similar? Unity dont have global area?

Sounds to me like a block on the main thread due to loading a new scene is causing a disconnect in your networking package. If you’ve got the ability try disabling network traffic while loading. If you’re using a version of Photon with PUN inside Unity you can use:

PhotonNetwork.isMessageQueueRunning = true/false;

*Edit: Reading your post again… The game object which your Server class is attached to is being destroyed on level load?