Maintains a map pairing each player's names to their StatIndex, to allow players to reconnect to games
 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();
 }
Esempio n. 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();
 }