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