unity how to rotate a gameobject in script 3d code example
Example: how to rotate object unity
public Transform Position; // make reference in inspector
Position.Rotate(x, y, z);
public Transform Position; // make reference in inspector
Position.Rotate(x, y, z);