You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
502 B
C#

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