You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
CrowdControl/Assets/Feel/FeelDemos/_Common/Scripts/FeelDemosNextDemoButtonInpu...

23 lines
541 B
C#

1 month ago
using System.Collections;
using System.Collections.Generic;
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();
}
}
}
}