I just used this line in my AttackTarget() method and it seems to be doing the same:
transform.LookAt(target);
I just used this line in my AttackTarget() method and it seems to be doing the same:
transform.LookAt(target);
Well, this one made me chuckle.
When compared to lecture’s code, I can’t see any difference in behaviour.
Congrats on finding a cleaner solution jimstav!
Thanks Lekteroi I just remembered it from the “Realm Rush” section and used it. I think the only difference is that it lacks the turning speed which Rick implemented.