GlobalGameJame/Assets/Scripts/DayManager.cs
2020-02-01 13:30:49 +01:00

22 lines
408 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class DayManager : MonoBehaviour
{
public int sunSpeed = 30;
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
this.gameObject.transform.Rotate(new Vector3(sunSpeed * Time.deltaTime, 0, 0));
}
}