Quantcast
Channel: Questions in topic: "please"
Viewing all articles
Browse latest Browse all 93

ERROR unity expected. insert a semicolon at the end

$
0
0
everytime i get this error and really dont know how to fix it i tried many things but keeps coming up the scirpt is this #pragma strict Var X : float; function Start () { //Gathering normal object scale x X = Transform.localScale.X; } function Update () { if(Input.GetKey("a")){ //Gamer pushes left a key //Set texture to normal position. transform.localScale.x = X; }else if(input.GetKey("d")){ //push d //Flip the texture transform.localScale.x = -X; } }

Viewing all articles
Browse latest Browse all 93

Trending Articles



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