set astro to active

This commit is contained in:
Madhav Kapa
2023-06-01 09:11:37 -07:00
parent e741eb1c5e
commit cd4a853c24
2 changed files with 6 additions and 9 deletions

View File

@ -86,8 +86,10 @@ public class SteamLobbyWithPlayer : MonoBehaviour
foreach (var user in inLobby.Values) Destroy(user);
inLobby.Clear();
GameObject player = Instantiate(playerPrefab, Vector3.zero, Quaternion.identity);
GameObject player = Instantiate(playerPrefab);
if(player == null)
Debug.Log("Player is null");
player.SetActive(true);
inLobby.Add(SteamClient.SteamId, player);
foreach (var friend in CurrentLobby.Members)