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

@ -9,12 +9,7 @@
</component> </component>
<component name="ChangeListManager"> <component name="ChangeListManager">
<list default="true" id="8e9b3697-c9b4-441a-aeed-4ea7b4488600" name="Changes" comment=""> <list default="true" id="8e9b3697-c9b4-441a-aeed-4ea7b4488600" name="Changes" comment="">
<change beforePath="$PROJECT_DIR$/.idea/.idea.station_obscurum_temp/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/.idea.station_obscurum_temp/.idea/workspace.xml" afterDir="false" /> <change beforePath="$PROJECT_DIR$/Assets/Scripts/Steam/SteamLobbyWithPlayer.cs" beforeDir="false" afterPath="$PROJECT_DIR$/Assets/Scripts/Steam/SteamLobbyWithPlayer.cs" afterDir="false" />
<change beforePath="$PROJECT_DIR$/Assets/FishNet/CodeGenerating/cecil-0.11.4/Mono.Cecil.sln.meta" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/Assets/FishNet/Runtime/Transporting/Transports/Tugboat/LiteNetLib/LiteNetLib.csproj.meta" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/Assets/Materials/AlienMats/Flesh_graph_0/Flesh_graph_dissolve_vert.mat" beforeDir="false" afterPath="$PROJECT_DIR$/Assets/Materials/AlienMats/Flesh_graph_0/Flesh_graph_dissolve_vert.mat" afterDir="false" />
<change beforePath="$PROJECT_DIR$/Assets/VFXGraph/GabrielAguiarProductions/VFXGraph_Muzzle_2020.3_HDRP_v1.0.1.unitypackage.meta" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/Assets/VFXGraph/GabrielAguiarProductions/VFXGraph_Muzzle_2020.3_URP_v1.0.1.unitypackage.meta" beforeDir="false" />
</list> </list>
<option name="SHOW_DIALOG" value="false" /> <option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" /> <option name="HIGHLIGHT_CONFLICTS" value="true" />
@ -113,7 +108,7 @@
<workItem from="1685636572156" duration="4819000" /> <workItem from="1685636572156" duration="4819000" />
<workItem from="1685617055026" duration="83000" /> <workItem from="1685617055026" duration="83000" />
<workItem from="1685617157524" duration="2799000" /> <workItem from="1685617157524" duration="2799000" />
<workItem from="1685632962650" duration="1910000" /> <workItem from="1685632962650" duration="2245000" />
</task> </task>
<servers /> <servers />
</component> </component>

View File

@ -86,8 +86,10 @@ public class SteamLobbyWithPlayer : MonoBehaviour
foreach (var user in inLobby.Values) Destroy(user); foreach (var user in inLobby.Values) Destroy(user);
inLobby.Clear(); 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); inLobby.Add(SteamClient.SteamId, player);
foreach (var friend in CurrentLobby.Members) foreach (var friend in CurrentLobby.Members)