mirror of
https://github.com/unity-atoms/unity-atoms.git
synced 2025-01-25 17:38:24 -05:00
18 lines
402 B
C#
18 lines
402 B
C#
using UnityEngine;
|
|
using UnityAtoms.BaseAtoms;
|
|
|
|
namespace UnityAtoms.Examples
|
|
{
|
|
[CreateAssetMenu(menuName = "Unity Atoms/Examples/Intro/Reset Health", fileName = "ResetHealth")]
|
|
public class ResetHealth : VoidAction
|
|
{
|
|
[SerializeField]
|
|
private IntVariable _variable = null;
|
|
|
|
public override void Do()
|
|
{
|
|
_variable.Reset(true);
|
|
}
|
|
}
|
|
}
|