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.
HighGroundRoyaleNetcode/Assets/Scripts/Gameplay/GameState/NetworkWinState.cs

22 lines
492 B
C#

using System;
using Unity.Netcode;
using UnityEngine;
namespace Unity.Multiplayer.Samples.BossRoom
{
public enum WinState
{
Invalid,
Win,
Loss
}
/// <summary>
/// MonoBehaviour containing only one NetworkVariableBool to represent the game session's win state.
/// </summary>
public class NetworkWinState : NetworkBehaviour
{
public NetworkVariable<WinState> winState = new NetworkVariable<WinState>(WinState.Invalid);
}
}