hello.
I have a movetowards function. that is working fine when i have the object in the scene. But when i want to place the object in the assets > enemy's> kamikaze folder the target variable says none. so for some reason it doesnt remember it's target. why is that?
maybe something with my code wich i dont think but here it is anyway.
gameobject doesnt remember target when making prefab
I have a movetowards function. that is working fine when i have the object in the scene. But when i want to place the object in the assets > enemy's> kamikaze folder the target variable says none. so for some reason it doesnt remember it's target. why is that?
maybe something with my code wich i dont think but here it is anyway.
Code (CSharp):
- using UnityEngine;
- using System.Collections;