|
I am trying to make a simple following program. It looks like this
It kinda works, but I get this: UnassignedReferenceException: The variable target of 'ai' has not been assigned. You probably need to assign the target variable of the ai script in the inspector. ai.Update () (at Assets/Enemy/ai.js:6) Why?
(comments are locked)
|
|
It means you didn't assign a gameobject to your varaible "target". You need to assign it in Inspector or assign it at run-time in script. But I have added it in the inspector.
May 12 '11 at 08:59 AM
Max 4
do you add it in script in Assets or script in scene?
May 12 '11 at 12:30 PM
Dreamer
(comments are locked)
|
