can you fix this for me please ?.
Assets\FBX\character\playercontroller.cs(14,17): error CS0501: ‘playercontroller.input()’ must declare a body because it is not marked abstract, extern, or partial
and this is my code :
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.InputSystem;
public class playercontroller : MonoBehaviour
{
Animator animator;
int isWalkingHash;
int isRunningHash;
PlayerInput input();
Vector2 currentMovement;
bool movementPressed;
bool runPressed;
void Awake()
{
input = new PlayerInput();
input.CharacterControls.Movement.performed += ctx =>{
currentMovement = ctx.ReadValue<Vector2>();
movementPressed = currentMovement.x != 0 || currentMovement.y != 0;
};
input.CharacterControlls.Run.performed += ctx => runPressed = ctx.ReadValueAsButton();
}
// Start is called before the first frame update
void Start()
{
animator = GetComponent<Animator>();
isWalkingHash = Animator.StringToHash("isWalking");
isRunningHash = Animator.StringToHash("isRunning");
}
// Update is called once per frame
void Update()
{
handleMovement();
}
void handleMovement() {
bool isRunning = animator.GetBool(isRunningHash);
bool isWalking = animator.GetBool(isWalkingHash);
if (movementPressed && !isWalking) {
animator.SetBool(isWalkingHash, true);
}
if(!movementPressed && isWalking) {
animator.SetBool(isWalkingHash, false);
}
if ((movementPressed && runPressed) && !isRunning){
animator.SetBool(isRunningHash, true);
}
if ((!movementPressed || !runPressed) && isRunning) {
animator.SetBool(isRunningHash, false);
}
}
void OnEnable()
{
input.CharacterControls.Enable();
}
void OnDisable()
{
input.CharacterControls.Disable();
}
}