using UnityEngine;
using UnityEngine.InputSystem;
public class CamControl : MonoBehaviour
{
private PlayerInput _inputPlayer;
private void Awake()
{
_inputPlayer = new PlayerInput();
}
private void OnEnable()
{
_inputPlayer.Enable();
}
private void OnDisable()
{
_inputPlayer.Disable();
}
private void OnGetTouch(InputAction.CallbackContext context)
{
}
}
из-за чего ошибка? 'PlayerInput' does not contain a definition for 'Enable' and no accessible extension method 'Enable' accepting a first argument of type 'PlayerInput' could be found (are you missing a using directive or an assembly reference?)