meteorgame/Assets/Scripts/JimmyVegas/RotateSky.cs

15 lines
259 B
C#
Raw Permalink Normal View History

2021-03-18 15:56:10 +00:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class RotateSky : MonoBehaviour
{
public float roateSpeed = 1.2f;
void Update()
{
RenderSettings.skybox.SetFloat("_Rotation", Time.time * roateSpeed);
}
}