Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 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);
 }