I want to rotate my game object on 90 180 270 and 360 degrees

Have you searched the forum? Rotating game objects has been discussed several times:

And I’ve created an example as well: publicexamples/examples/rotate_and_move at master · britzl/publicexamples · GitHub