21 lines
425 B
C#
21 lines
425 B
C#
|
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));
|
||
|
}
|
||
|
}
|