private void Awake()
 {
     if (Singleton != null)
     {
         Destroy(gameObject);
         return;
     }
     DontDestroyOnLoad(gameObject);
     Singleton = this;
     BaseNetworkGameManager.onClientDisconnected += OnClientDisconnected;
 }
Esempio n. 2
0
 private void Awake()
 {
     if (Singleton != null)
     {
         Destroy(gameObject);
         return;
     }
     DontDestroyOnLoad(gameObject);
     Singleton = this;
     SimplePhotonNetworkManager.onConnectionError  += OnConnectionError;
     SimplePhotonNetworkManager.onRoomConnectError += OnRoomConnectError;
 }