- Home /
transform could not be found
Hello all, I have the following code :
using UnityEngine;
using System.Collections;
[RequireComponent(typeof(tk2dAnimatedSprite))]
[RequireComponent(typeof(PlayMakerFSM))]
public class NPC : MonoBehaviour
{
bool isFollowingTarget = false;
transform followTarget;
void FollowTarget()
{
}
void LerpingToFollowTarget()
{
}
}
The problem is that I get the following error : Assets/Scripts/Characters/NPC.cs(8,5): error CS0246: The type or namespace name `transform' could not be found. Are you missing a using directive or an assembly reference? Does anyone have any ideea what this could be from ?
Regards
Comment
Your answer
Follow this Question
Related Questions
StartCoroutine namespace or type not found 2 Answers
UnityEngine.Advertisements 0 Answers
Types and namespace not found... 1 Answer
UnityEngine could not be found? 7 Answers
How I can fix This? HELP ME! 0 Answers