19 lines
489 B
C#
19 lines
489 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class AtmosphereRotator : MonoBehaviour
|
|
{
|
|
public float rotationSpeedX = 0f;
|
|
public float rotationSpeedY = 2f;
|
|
public float rotationSpeedZ = 0f;
|
|
|
|
void Update()
|
|
{
|
|
transform.Rotate(rotationSpeedX * Time.deltaTime,
|
|
rotationSpeedY * Time.deltaTime,
|
|
rotationSpeedZ * Time.deltaTime,
|
|
Space.World);
|
|
}
|
|
}
|