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