架构大更
This commit is contained in:
@@ -1,23 +1,18 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using MoreMountains.Feedbacks;
|
||||
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
|
||||
/// 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;
|
||||
{
|
||||
public MMFeedbacks OnInputFeedback;
|
||||
|
||||
protected virtual void Update()
|
||||
{
|
||||
if (FeelDemosInputHelper.CheckEnterPressedThisFrame())
|
||||
{
|
||||
OnInputFeedback?.PlayFeedbacks();
|
||||
}
|
||||
}
|
||||
}
|
||||
protected virtual void Update()
|
||||
{
|
||||
if (FeelDemosInputHelper.CheckEnterPressedThisFrame()) OnInputFeedback?.PlayFeedbacks();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user