I copied code from lecture and got this error
The type or namespace name ‘Waypint’ could not be found (are you missing a using directive or an assembly reference?)
Here’s my code
Preformatted text
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class EnemyMover : MonoBehaviour
{
[SerializeField] List<Waypoint> path = new List<Waypoint>();
void Start()
{
PrintWaypointName();
}
void PrintWaypointName()
{
foreach(Waypoint waypoint in path)
{
Debug.Log(waypoint.name);
}
}
}Preformatted text