Files
Continentis/Assets/OtherPlugins/Feel/FeelDemos/Common/Scripts/FeelDemosNextDemoButtonInput.cs

18 lines
509 B
C#
Raw Normal View History

2026-03-20 11:56:50 -04:00
using MoreMountains.Feedbacks;
2025-10-03 00:02:43 -04:00
using UnityEngine;
namespace MoreMountains.Feel
{
/// <summary>
2026-03-20 11:56:50 -04:00
/// This component checks whether the user pressed Enter and plays the associated feedback if that's the case
2025-10-03 00:02:43 -04:00
/// </summary>
public class FeelDemosNextDemoButtonInput : MonoBehaviour
2026-03-20 11:56:50 -04:00
{
public MMFeedbacks OnInputFeedback;
2025-10-03 00:02:43 -04:00
2026-03-20 11:56:50 -04:00
protected virtual void Update()
{
if (FeelDemosInputHelper.CheckEnterPressedThisFrame()) OnInputFeedback?.PlayFeedbacks();
}
}
2025-10-03 00:02:43 -04:00
}