here is my code i got only 1 error as i fixed most of them i get a error ; expected insert a semicolon at the end.
but i get in no way where i should add the last semicolon i managfed to fix 8 errors in the script and updated it to untiy 5 but now i only got 1 single error wich i seems to not solve
here is my code
int flyingSpeed = 100;
int; speedChange = 20;
int; rotationInt = 2;
Update();
{
if (Input.GetKeyDown (KeyCode.W));
{
flyingSpeed += speedChange;
}
if (Input.GetKeyDown (KeyCode.S));
{
flyingSpeed += -speedChange;
}
if (Input.GetKey (KeyCode.A));
{
transform.RotateAround (transform.position, transform.up, -rotateInt);
}
if (Input.GetKey (KeyCode.D));
{
transform.RotateAround (transform.position, transform.up, rotateInt);
}
}
↧