unity-atoms/Examples/Assets/Intro/UI/ResetHealthButton/ResetHealth.cs

18 lines
412 B
C#
Raw Normal View History

2019-09-30 17:05:13 -04: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()
{
_variable.ResetValue(true);
}
}
}