Hello, how i can make spell go up to enemy, atm i have a small problem with my script
many times monster change position faster than spell arrive to monster, i wan’t the spell follow monster
how i can do that?
this is my code (loop)
while(myspell!= null Distance(myspell.transform.position, target.position) > 1)
{
myspell.transform.Translate(Vector3.forward * (Time.deltaTime * 30));
yield return null; // Wait 1 frame
}