unity-atoms/Source/Color/ConditionalColorAction.cs
2019-04-08 16:14:50 +02:00

23 lines
703 B
C#

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