18 lines
402 B
C#
Raw Normal View History

2020-03-02 02:26:06 +01:00
using UnityEngine;
using UnityAtoms.BaseAtoms;
2019-09-30 23:05:13 +02:00
2020-03-02 02:26:06 +01:00
namespace UnityAtoms.Examples
{
[CreateAssetMenu(menuName = "Unity Atoms/Examples/Intro/Reset Health", fileName = "ResetHealth")]
public class ResetHealth : VoidAction
{
[SerializeField]
private IntVariable _variable = null;
2019-09-30 23:05:13 +02:00
2020-03-02 02:26:06 +01:00
public override void Do()
{
_variable.Reset(true);
}
}
}