using System; using Unity.Netcode; using UnityEngine; namespace Unity.BossRoom.Gameplay.GameplayObjects { public enum LifeState { Alive, Fainted, Dead, } /// /// MonoBehaviour containing only one NetworkVariable of type LifeState which represents this object's life state. /// public class NetworkLifeState : NetworkBehaviour { [SerializeField] NetworkVariable m_LifeState = new NetworkVariable(GameplayObjects.LifeState.Alive); public NetworkVariable LifeState => m_LifeState; #if UNITY_EDITOR || DEVELOPMENT_BUILD /// /// Indicates whether this character is in "god mode" (cannot be damaged). /// public NetworkVariable IsGodMode { get; } = new NetworkVariable(false); #endif } }