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

23 lines
656 B
C#

using System;
using UnityEngine;
using UnityEngine.Serialization;
namespace UnityAtoms
{
[Serializable]
public sealed class ConditionalFloatGameActionHelper : ConditionalGameActionHelper<float, FloatAction, BoolFloatFunction> { }
[CreateAssetMenu(menuName = "Unity Atoms/Conditional Actions/Float", fileName = "ConditionalFloatAction")]
public sealed class ConditionalFloatAction : FloatAction
{
[FormerlySerializedAs("Conditional")]
[SerializeField]
private ConditionalFloatGameActionHelper _conditional;
public override void Do(float t1)
{
_conditional.Do(t1);
}
}
}