mirror of
https://github.com/unity-atoms/unity-atoms.git
synced 2025-01-24 09:08:23 -05:00
23 lines
656 B
C#
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);
|
|
}
|
|
}
|
|
}
|