Project_WL/Assets/LMHPOLY/Low Poly Nature Bundle/_Bonus Assets/Scripts/SunControl.cs

15 lines
356 B
C#
Raw Permalink Normal View History

using UnityEngine;
using System.Collections;
public class SunControl : MonoBehaviour {
//Range for min/max values of variable
[Range(-10f, 10f)]
public float sunRotationSpeed_x, sunRotationSpeed_y;
// Sun Movement
void Update () {
gameObject.transform.Rotate (sunRotationSpeed_x * Time.deltaTime, sunRotationSpeed_y * Time.deltaTime, 0);
}
}