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

23 lines
663 B
C#

using System;
using UnityEngine;
using UnityEngine.Serialization;
namespace UnityAtoms
{
[Serializable]
public sealed class ConditionalColorGameActionHelper : ConditionalGameActionHelper<Color, ColorAction, BoolColorFunction> { }
[CreateAssetMenu(menuName = "Unity Atoms/Conditional Actions/Color", fileName = "ConditionalColorAction")]
public sealed class ConditionalColorAction : ColorAction
{
[FormerlySerializedAs("Conditional")]
[SerializeField]
private ConditionalColorGameActionHelper _conditional = null;
public override void Do(Color t1)
{
_conditional.Do(t1);
}
}
}