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

23 lines
646 B
C#

using System;
using UnityEngine;
using UnityEngine.Serialization;
namespace UnityAtoms
{
[Serializable]
public class ConditionalBoolGameActionHelper : ConditionalGameActionHelper<bool, BoolAction, BoolBoolFunction> { }
[CreateAssetMenu(menuName = "Unity Atoms/Conditional Actions/Bool", fileName = "ConditionalBoolAction")]
public sealed class ConditionalBoolAction : BoolAction
{
[FormerlySerializedAs("Conditional")]
[SerializeField]
private ConditionalBoolGameActionHelper _conditional = null;
public override void Do(bool t1)
{
_conditional.Do(t1);
}
}
}