unity-atoms/Source/ConditionalActions/ConditionalIntAction.cs
2019-05-29 18:52:27 +02:00

23 lines
643 B
C#

using System;
using UnityEngine;
using UnityEngine.Serialization;
namespace UnityAtoms
{
[Serializable]
public sealed class ConditionalIntGameActionHelper : ConditionalGameActionHelper<int, IntAction, BoolIntFunction> { }
[CreateAssetMenu(menuName = "Unity Atoms/Conditional Actions/Int", fileName = "ConditionalIntAction")]
public sealed class ConditionalIntAction : IntAction
{
[FormerlySerializedAs("Conditional")]
[SerializeField]
private ConditionalIntGameActionHelper _conditional = null;
public override void Do(int t1)
{
_conditional.Do(t1);
}
}
}