Insanely huge initial commit

This commit is contained in:
2026-02-21 16:40:15 -08:00
parent 208d626100
commit f74c547a13
33825 changed files with 5213498 additions and 0 deletions

View File

@@ -0,0 +1,51 @@
using MoreMountains.Feedbacks;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace MoreMountains.Feel
{
/// <summary>
/// This class handles Feel's MMSequencer demo scene, detecting input and starting/stopping its target sequencer
/// </summary>
public class MMSequencerDemoManager : MonoBehaviour
{
[Header("Sequence")]
/// the feedback sequencer to pilot when pressing the ActionKey
public MMFeedbacksSequencer TargetSequencer;
/// <summary>
/// On Update we detect input
/// </summary>
protected virtual void Update()
{
HandleInput();
}
/// <summary>
/// Every frame we check if input was pressed
/// </summary>
protected virtual void HandleInput()
{
if (FeelDemosInputHelper.CheckMainActionInputPressedThisFrame())
{
Toggle();
}
}
/// <summary>
/// Turns the sequencer on or off based on its current state
/// </summary>
protected virtual void Toggle()
{
if (TargetSequencer.Playing)
{
TargetSequencer.StopSequence();
}
else
{
TargetSequencer.PlaySequence();
}
}
}
}