Insanely huge initial commit

This commit is contained in:
2026-02-21 17:04:05 -08:00
parent 9cdd36191a
commit 613d75914a
22525 changed files with 4035207 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
// Copyright (c) Meta Platforms, Inc. and affiliates.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace Lofelt.NiceVibrations
{
public class SoundSwitch : MonoBehaviour
{
public V2DemoManager DemoManager;
protected MMSwitch _switch;
protected virtual void Awake()
{
_switch = this.gameObject.GetComponent<MMSwitch>();
}
protected virtual void OnEnable()
{
if (DemoManager.SoundActive)
{
_switch.CurrentSwitchState = MMSwitch.SwitchStates.On;
_switch.InitializeState();
}
else
{
_switch.CurrentSwitchState = MMSwitch.SwitchStates.Off;
_switch.InitializeState();
}
}
}
}