SAIMA/Assets//太阳/SunControll.cs

21 lines
425 B
C#
Raw Normal View History

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class SunControll : MonoBehaviour
{
public float speed;
private float num=-416.45f;
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void FixedUpdate()
{
transform.rotation = Quaternion.Euler(new Vector3(0, 0, num-=speed));
}
}