18 lines
294 B
C#
18 lines
294 B
C#
|
|
using UnityEngine;
|
||
|
|
using UnityEngine.InputSystem;
|
||
|
|
|
||
|
|
public class PlayerInputErrorhandler : MonoBehaviour
|
||
|
|
{
|
||
|
|
private PlayerInput Input;
|
||
|
|
|
||
|
|
private void Start()
|
||
|
|
{
|
||
|
|
Input = GetComponent<PlayerInput>();
|
||
|
|
}
|
||
|
|
|
||
|
|
private void OnDisable()
|
||
|
|
{
|
||
|
|
Input.actions = null;
|
||
|
|
}
|
||
|
|
}
|