mirror of
https://github.com/unity-atoms/unity-atoms.git
synced 2025-01-24 17:17:47 -05:00
23 lines
643 B
C#
23 lines
643 B
C#
using System;
|
|
using UnityEngine;
|
|
using UnityEngine.Serialization;
|
|
|
|
namespace UnityAtoms
|
|
{
|
|
[Serializable]
|
|
public sealed class ConditionalIntGameActionHelper : ConditionalGameActionHelper<int, IntAction, BoolIntFunction> { }
|
|
|
|
[CreateAssetMenu(menuName = "Unity Atoms/Conditional Actions/Int", fileName = "ConditionalIntAction")]
|
|
public sealed class ConditionalIntAction : IntAction
|
|
{
|
|
[FormerlySerializedAs("Conditional")]
|
|
[SerializeField]
|
|
private ConditionalIntGameActionHelper _conditional = null;
|
|
|
|
public override void Do(int t1)
|
|
{
|
|
_conditional.Do(t1);
|
|
}
|
|
}
|
|
}
|