17 lines
379 B
C#
Raw Normal View History

2020-03-05 00:48:39 +01:00
using UnityEngine;
using UnityAtoms.BaseAtoms;
2020-03-18 02:04:33 +01:00
namespace UnityAtoms.Examples
2020-03-05 00:48:39 +01:00
{
2020-03-20 01:29:39 +01:00
/// <summary>
/// A component that contains the Player's health.
/// </summary>
2020-03-18 02:04:33 +01:00
public class UnitHealth : MonoBehaviour
{
public int Health { get => _health.Value; set => _health.Value = value; }
2020-03-05 00:48:39 +01:00
2020-03-18 02:04:33 +01:00
[SerializeField]
private IntReference _health;
}
}