Quantcast
Channel: Latest Questions by BLOODragonGames
Viewing all articles
Browse latest Browse all 14

I need help with this parsing error (where is it?)

$
0
0
My script in C# in Unity Engine public class LookAtPlayer : MonoBehavior { var target = Transform; //enemy target var moveSpeed = 1; //move speed ver rotationSpeed = 3; //speed of turning var myTransform = Transform //current transform data of this enemy } function Update //rotate to look at the player myTransform.rotation = Quaternion.Slerp (myTransform.rotation; Quaternion.LookRotation(target.position - myTransform.position), rotationSpeed*Time.deltaTime); //move towards the player myTransform.position += myTransform.forward * moveSpeed * Time.deltaTime; }

Viewing all articles
Browse latest Browse all 14

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>