15 lines
259 B
C#
15 lines
259 B
C#
|
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);
|
|||
|
}
|
|||
|
|
|||
|
}
|