transform.up wrong?

Hello!
I’ve just started my adventure with Unity and immediately run into troubles: I am trying to display a triangle on the screen, rotate it with LEFT/RIGHT and go forward/back with UP/DOWN. I use transform.up to move ship forward, unfortunately after rotating the ship it goes into wrong direction for some reason…

if (Input.GetKey(KeyCode.UpArrow))
{
ship.transform.Translate(s.transform.up * 1);
}

if (Input.GetKey(KeyCode.LeftArrow))
{
ship.transform.Rotate(0,0,1, Space.Self);
}

any ideas what I am doing wrong?

if you are just starting, may I suggest going to “Learn”, Then “tutorials”, then “projects”, then Roll-A-Ball. This should help you learn how to move an object, and you can probably just make a similar script to rotate instead of move. I hope it works!