22 lines
492 B
C#
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);
|
|
}
|
|
}
|