using System; using Unity.Netcode; using VContainer; namespace Unity.BossRoom.Gameplay.GameState { public class NetworkPostGame : NetworkBehaviour { public NetworkVariable WinState = new NetworkVariable(); [Inject] public void Construct(PersistentGameState persistentGameState) { if (NetworkManager.Singleton.IsServer) { WinState.Value = persistentGameState.WinState; } } } }