Files
Continentis/Assets/OtherPlugins/Feel/FeelDemos/Common/Scripts/FeelDemosNextDemoButtonInput.cs
SoulliesOfficial d09b58fd80 架构大更
2026-03-20 11:56:50 -04:00

18 lines
509 B
C#

using MoreMountains.Feedbacks;
using UnityEngine;
namespace MoreMountains.Feel
{
/// <summary>
/// This component checks whether the user pressed Enter and plays the associated feedback if that's the case
/// </summary>
public class FeelDemosNextDemoButtonInput : MonoBehaviour
{
public MMFeedbacks OnInputFeedback;
protected virtual void Update()
{
if (FeelDemosInputHelper.CheckEnterPressedThisFrame()) OnInputFeedback?.PlayFeedbacks();
}
}
}