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