I'mhavingtwoerrors,Icannotfixit.
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.