mirror of
https://github.com/unity-atoms/unity-atoms.git
synced 2025-01-24 00:58:59 -05:00
18 lines
412 B
C#
18 lines
412 B
C#
using UnityEngine;
|
|
using UnityEngine.Serialization;
|
|
|
|
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.ResetValue(true);
|
|
}
|
|
}
|
|
}
|