mirror of
https://github.com/unity-atoms/unity-atoms.git
synced 2025-01-23 16:48:23 -05:00
14 lines
287 B
C#
14 lines
287 B
C#
using UnityEngine;
|
|
using UnityAtoms.BaseAtoms;
|
|
|
|
namespace UnityAtoms.Examples
|
|
{
|
|
public class UnitHealth : MonoBehaviour
|
|
{
|
|
public int Health { get => _health.Value; set => _health.Value = value; }
|
|
|
|
|
|
[SerializeField]
|
|
private IntReference _health;
|
|
}
|
|
} |