Error No Code Unity5

-2

I'mhavingtwoerrors,Icannotfixit.

    
asked by anonymous 19.05.2016 / 16:05

1 answer

1

Method void Animating (float h, float v) should be declared thus

void Animating  (float h, float v){

}

The second error is because floorHit is probably not a Vector3 .

If you want to decrease some of the transform's assignment and assign it to the variable playerToMouse , you'll have to use it like this:

Vector3 playerToMouse = new Vector3(transform.position.x, transform.position.y,transform.position.z); and decrease the amount you want for floorHit.

    
19.05.2016 / 16:13