18 lines
407 B
C#
Raw Normal View History

2019-09-30 23:05:13 +02:00
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()
{
2019-10-14 16:39:22 +02:00
_variable.Reset(true);
2019-09-30 23:05:13 +02:00
}
}
}