The first image have the 2 errors(first error is an CS1023 and the second is CS0642)
and the seconds have my scrip
Pls help me!
Fix your GetInteraction method.
void GetInteraction()
{
Ray interactionRay = Camera.main.ScreenPointToRay(Input.mousePosition);
RaycastHit interactionInfo;
if(Physics.Raycast(interactionRay, out interactionInfo, Mathf.Infinity))
{
GameObject interactedObject = interactionInfo.collider.gameObject;
if(interactedObject.tag == "Interactable.Object")
{
Debug.Log("Interactable interacted.");
playerAgent.destination = interactionInfo.point;
}
}
}
i know GameGrind does some nice tutorials but i’d consider learning the basics of c# or even the basics of programming before following along such tutorial series.
Sry for my english