mirror of
https://github.com/unity-atoms/unity-atoms.git
synced 2025-01-24 00:58:59 -05:00
22 lines
672 B
C#
22 lines
672 B
C#
using System;
|
|
using UnityEngine;
|
|
|
|
namespace UnityAtoms.Mobile
|
|
{
|
|
[Serializable]
|
|
public sealed class ConditionalTouchUserInputGameActionHelper : ConditionalGameActionHelper<TouchUserInput, TouchUserInputAction, BoolTouchUserInputFunction> { }
|
|
|
|
[CreateAssetMenu(menuName = "Unity Atoms/Conditional Actions/TouchUserInput", fileName = "ConditionalTouchUserInputAction")]
|
|
public sealed class ConditionalTouchUserInputAction : TouchUserInputAction
|
|
{
|
|
[SerializeField]
|
|
public ConditionalTouchUserInputGameActionHelper Conditional;
|
|
|
|
public override void Do(TouchUserInput t1)
|
|
{
|
|
Conditional.Do(t1);
|
|
}
|
|
}
|
|
}
|
|
|