Quantcast
Channel: Questions in topic: "error"
Viewing all articles
Browse latest Browse all 7934

I keep getting an error message saying I neded to add a semicolon at the end, but I'm not sure where.

$
0
0
var target : Transform; var moveSpeed = 3; var rotationSpeed = 3; var myTransform : Transform; function Awake(){ myTransform = transform; } function Start(){ target = GameObject.FindWIthTag("Player") transform; } function Update () { myTransform.rotation = Quaternion.Slerp(myTransform.rotation, Quaternion.LookRotation(target.position - myTransform.position), rotationSpeed*Time.deltaTime myTransform.position += myTransform.forward * moveSpeed * Time.deltaTime; Also, I keep getting an error saying there's an unexpected char: ";"

Viewing all articles
Browse latest Browse all 7934

Trending Articles



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