mirror of
https://github.com/unity-atoms/unity-atoms.git
synced 2025-01-24 00:58:59 -05:00
23 lines
654 B
C#
23 lines
654 B
C#
using System;
|
|
using UnityEngine;
|
|
using UnityEngine.Serialization;
|
|
|
|
namespace UnityAtoms
|
|
{
|
|
[Serializable]
|
|
public sealed class ConditionalVoidGameActionHelper : ConditionalGameActionHelper<Void, VoidAction, BoolVoidFunction> { }
|
|
|
|
[CreateAssetMenu(menuName = "Unity Atoms/Conditional Actions/Void", fileName = "ConditionalVoidAction")]
|
|
public sealed class ConditionalVoidAction : VoidAction
|
|
{
|
|
[FormerlySerializedAs("Conditional")]
|
|
[SerializeField]
|
|
private ConditionalVoidGameActionHelper _conditional = null;
|
|
|
|
public override void Do()
|
|
{
|
|
_conditional.Do(new Void());
|
|
}
|
|
}
|
|
}
|