Unity3D学习记录——日深日落

来源:互联网 发布:易约软件 编辑:程序博客网 时间:2024/05/29 16:24
using System.Collections;using System.Collections.Generic;using UnityEngine;public class SunRiseSet : MonoBehaviour {    private Transform m_transform;// Use this for initializationvoid Start () {        m_transform = GameObject.Find("Directional Light").GetComponent<Transform>();}// Update is called once per framevoid Update () {        m_transform.Rotate(Vector3.down * 40 * Time.deltaTime);}}

原创粉丝点击