how to make things rotate in unity code example
Example: object spin unity
void FixedUpdate()
{
gameObject.transform.Rotate(0, 0, +1)//Rotate(x, y, z) + = add one per update
}
void FixedUpdate()
{
gameObject.transform.Rotate(0, 0, +1)//Rotate(x, y, z) + = add one per update
}