please someone show me how to fix this error
Argument 1: cannot convert from ‘int’ to ‘string’
code error number: CS1503
my code :
using System.Collections;
using System.Collections.Generic;
using Mirror;
using UnityEngine;
using UnityEngine.AI;
public class PlayerMovement : NetworkBehaviour
{
[SerializeField]
private NavMeshAgent agent = null;
private Camera mainCamera;
[Command]
private void CmdMove(Vector3 position)
{
if (!NavMesh.SamplePosition(position, out NavMeshHit hit,1f, NavMesh.AllAreas )) {return;}
agent.SetDestination(hit.position);
}
public override void OnStartAuthority()
{
mainCamera = Camera.main;
}
[ClientCallback]
private void Update()
{
if (!hasAuthority) {return;}
if (!Input.GetButtonDown(1)) {return;}
Ray ray = mainCamera.ScreenPointToRay(Input.mousePosition);
if (Physics.Raycast(ray, out RaycastHit hit, Mathf.Infinity )) {return;}
CmdMove(hit.point);
}
}