Assets\ImputManager.cs(17,22): error CS1061: 'Controls' does not contain a definition for 'playerMovement' and no accessible extension method 'playerMovement' accepting a first argument of type 'Controls' could be found (are you missing a using directive or an assembly reference?)
Hata bu, Aşağıda kodlarda bulunmakta.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ImputManager : MonoBehaviour
{
Controls controls;
public Vector2 moveInput;
private void OnEnable()
{
if(controls == null)
{
controls = new Controls();
controls.playerMovement.movement.performend += i => moveInput = i.ReadValue<Vector2>();
}
controls.Enable();
}
private void OnDisable()
{
controls.Disable();
}
}