using UnityEngine; using UnityEngine.InputSystem; public class PlayerInputErrorhandler : MonoBehaviour { private PlayerInput Input; private void Start() { Input = GetComponent(); } private void OnDisable() { Input.actions = null; } }