I am working on the 2d unity videos, I have gotten a little stumped though. I have included the generated error that Unity throws to me. I'm not quiet sure what the problem is. I want to say it's supposed to be finding my other script, PathDefinition, but is failing to do so.
Any help would be appreciated and thank you for taking the time to help.
Code:
Assets/code/followPath.cs(14,16): error CS0246: The type or namespace name `PathDefinition' could not be found. Are you missing a using directive or an assembly reference?
Code:
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
public class followPath : MonoBehaviour
{
public enum FollowType
{
MoveTowards,
Lerp
}
public FollowType Type = FollowType.MoveTowards;
public PathDefinition Path;
public float Speed = 1;
public float MaxDistanceToGoal = .1f;
private IEnumerator<Transform> _currentPoint;
public void Start()
{
if (followPath == null) {
Debug.LogError ("Path cannot be null", GameObject);
return;
}
_currentPoint = Path.GetPathEnumerator ();
_currentPoint.MoveNext ();
}
}