Added disabling of rumble
This commit is contained in:
parent
875701c68e
commit
1773acb3ef
|
@ -4,6 +4,8 @@ using UnityEngine.InputSystem;
|
|||
|
||||
public class RumbleManager : MonoBehaviour
|
||||
{
|
||||
public bool DoRubling = true;
|
||||
|
||||
public static RumbleManager Instance { get; private set; }
|
||||
|
||||
public static Gamepad[] pads;
|
||||
|
@ -54,7 +56,7 @@ public class RumbleManager : MonoBehaviour
|
|||
bool initialized = false;
|
||||
private void Update()
|
||||
{
|
||||
if (!initialized) return;
|
||||
if (!initialized || !DoRubling) return;
|
||||
|
||||
foreach (var player in playerRumbles.Keys)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue