ClientServer/Client/Assets/Scripts/Player/PlayerInputErrorhandler.cs

18 lines
294 B
C#
Raw Normal View History

2025-09-06 17:17:39 +04:00
using UnityEngine;
using UnityEngine.InputSystem;
public class PlayerInputErrorhandler : MonoBehaviour
{
private PlayerInput Input;
private void Start()
{
Input = GetComponent<PlayerInput>();
}
private void OnDisable()
{
Input.actions = null;
}
}