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