initial commit
This commit is contained in:
18
Assets/Scripts/AtmosphereRotator.cs
Normal file
18
Assets/Scripts/AtmosphereRotator.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user