mirror of
https://github.com/unity-atoms/unity-atoms.git
synced 2025-01-22 16:18:24 -05:00
21 lines
599 B
C#
21 lines
599 B
C#
|
using System;
|
||
|
using UnityEngine;
|
||
|
|
||
|
namespace UnityAtoms
|
||
|
{
|
||
|
[Serializable]
|
||
|
public class ConditionalVoidGameActionHelper : ConditionalGameActionHelper<Void, VoidAction, BoolVoidFunction> { }
|
||
|
|
||
|
[CreateAssetMenu(menuName = "Unity Atoms/Void/Conditional", fileName = "ConditionalVoidAction", order = CreateAssetMenuUtils.Order.CONDITIONAL)]
|
||
|
public class ConditionalVoidAction : VoidAction
|
||
|
{
|
||
|
[SerializeField]
|
||
|
private ConditionalVoidGameActionHelper Conditional = null;
|
||
|
|
||
|
public override void Do()
|
||
|
{
|
||
|
Conditional.Do(new Void());
|
||
|
}
|
||
|
}
|
||
|
}
|