Added disabling of rumble

This commit is contained in:
BOT Alex 2024-02-04 08:50:27 +01:00
parent 875701c68e
commit 1773acb3ef
1 changed files with 3 additions and 1 deletions

View File

@ -4,6 +4,8 @@ using UnityEngine.InputSystem;
public class RumbleManager : MonoBehaviour public class RumbleManager : MonoBehaviour
{ {
public bool DoRubling = true;
public static RumbleManager Instance { get; private set; } public static RumbleManager Instance { get; private set; }
public static Gamepad[] pads; public static Gamepad[] pads;
@ -54,7 +56,7 @@ public class RumbleManager : MonoBehaviour
bool initialized = false; bool initialized = false;
private void Update() private void Update()
{ {
if (!initialized) return; if (!initialized || !DoRubling) return;
foreach (var player in playerRumbles.Keys) foreach (var player in playerRumbles.Keys)
{ {