From cd4a853c24a7d526aa9779933d2626a00f30de16 Mon Sep 17 00:00:00 2001 From: Madhav Kapa Date: Thu, 1 Jun 2023 09:11:37 -0700 Subject: [PATCH] set astro to active --- .idea/.idea.station_obscurum_temp/.idea/workspace.xml | 9 ++------- Assets/Scripts/Steam/SteamLobbyWithPlayer.cs | 6 ++++-- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/.idea/.idea.station_obscurum_temp/.idea/workspace.xml b/.idea/.idea.station_obscurum_temp/.idea/workspace.xml index 6d6f6ab..d395937 100644 --- a/.idea/.idea.station_obscurum_temp/.idea/workspace.xml +++ b/.idea/.idea.station_obscurum_temp/.idea/workspace.xml @@ -9,12 +9,7 @@ - - - - - - + diff --git a/Assets/Scripts/Steam/SteamLobbyWithPlayer.cs b/Assets/Scripts/Steam/SteamLobbyWithPlayer.cs index c876f72..899a1eb 100644 --- a/Assets/Scripts/Steam/SteamLobbyWithPlayer.cs +++ b/Assets/Scripts/Steam/SteamLobbyWithPlayer.cs @@ -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)