日月轮替

来源:互联网 发布:网络奖状称号大全 编辑:程序博客网 时间:2024/06/02 17:35
给太阳光添加脚本DayNightContral
using System.Collections;using System.Collections.Generic;using UnityEngine;public class DayNightContral : MonoBehaviour{    public float rotateSpeed = 10;// Update is called once per framevoid Update () {        transform.Rotate(Vector3.up * rotateSpeed * Time.deltaTime, Space.Self);    }}

我做了一个 但是天空盒子不能动,待我解决再来补充
0 0
原创粉丝点击