Maintains a map pairing each player's names to their StatIndex, to allow players to reconnect to games
コード例 #1
0
 public override void BoltStartDone()
 {
     IndexMap = new PlayerIndexMap();
     if (GameManager.instance.CurrentUserName == "") GameManager.instance.CurrentUserName = "******";
     PlayerRegistry.CreatePlayer(null, GameManager.instance.CurrentUserName);
     IndexMap.AddPlayer(GameManager.instance.CurrentUserName);
     lobby = BoltNetwork.Instantiate(BoltPrefabs.LobbyList).GetComponent<LobbyState>();
     lobby.InitializeLobby();
 }
コード例 #2
0
 public override void BoltStartDone()
 {
     IndexMap = new PlayerIndexMap();
     if (GameManager.instance.CurrentUserName == "")
     {
         GameManager.instance.CurrentUserName = "******";
     }
     PlayerRegistry.CreatePlayer(null, GameManager.instance.CurrentUserName);
     IndexMap.AddPlayer(GameManager.instance.CurrentUserName);
     lobby = BoltNetwork.Instantiate(BoltPrefabs.LobbyList).GetComponent <LobbyState>();
     lobby.InitializeLobby();
 }