GlobalGameJame/Assets/Scripts/DayManager.cs

22 lines
408 B
C#
Raw Normal View History

2020-02-01 12:30:49 +00:00
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));
}
}