给太阳光添加脚本DayNightContral
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class DayNightContral : MonoBehaviour
{
public float rotateSpeed = 10;
// Update is called once per frame
void Update () {
transform.Rotate(Vector3.up * rotateSpeed * Time.deltaTime, Space.Self);
}
}
我做了一个 但是天空盒子不能动,待我解决再来补充