Esempio n. 1
0
        /// <summary>
        /// Print out a list of peers
        /// </summary>
        /// <returns> peer list string </returns>
        public string PrintAllPeers()
        {
            string list = "";

            peerList.ExecStatement(peer => {
                list += peer.id + " -- " + peer.name + "\n";
            });
            return(list);
        }
 // Load the first level
 public void LoadGame(ObjSyncList <PlayerSelector> selectorList, float additionalTime = 0)
 {
     // Caching the selectors to be used for the players
     selectorList.ExecStatement(selector => playerManager.cachedSelectors.Add(selector.id, selector.index));
     SceneManager.sceneLoaded += OnSceneLoaded;
     SceneManager.LoadScene(1, LoadSceneMode.Single);
     InLobby = false;
 }