using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class SunRiseSet : MonoBehaviour {
private Transform m_transform;
// Use this for initialization
void Start () {
m_transform = GameObject.Find("Directional Light").GetComponent<Transform>();
}
// Update is called once per frame
void Update () {
m_transform.Rotate(Vector3.down * 40 * Time.deltaTime);
}
}
Unity3D学习记录——日深日落
最新推荐文章于 2023-03-06 17:44:58 发布