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(); }
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(); }