private void Start()
        {
            // If current is not connected to the server, return to the main menu.
            if (!NetworkManager.IsConnectedToServer && !LoadingScreenManager.IsMainScene)
            {
                LoadingScreenManager.LoadScene(LoadingScreenManager.TargetScene.Main);
                return;
            }

            IgnoreUserInput = false;

            InitScene();

            MessageBroadCastManager.OnSceneFinishedInit();
        }
Beispiel #2
0
 /// <summary>
 /// When we joined the lobby after connecting to Photon, we want to immediately join the demo room, or create it if it doesn't exist
 /// </summary>
 public override void OnJoinedLobby()
 {
     base.OnJoinedLobby();
     // Load lobby scene when joined lobby.
     LoadingScreenManager.LoadScene(LoadingScreenManager.TargetScene.Lobby);
 }