mirror of
https://github.com/unity-atoms/unity-atoms.git
synced 2025-01-24 17:17:47 -05:00
17 lines
379 B
C#
17 lines
379 B
C#
using UnityEngine;
|
|
using UnityAtoms.BaseAtoms;
|
|
|
|
namespace UnityAtoms.Examples
|
|
{
|
|
/// <summary>
|
|
/// A component that contains the Player's health.
|
|
/// </summary>
|
|
public class UnitHealth : MonoBehaviour
|
|
{
|
|
public int Health { get => _health.Value; set => _health.Value = value; }
|
|
|
|
|
|
[SerializeField]
|
|
private IntReference _health;
|
|
}
|
|
} |