OldBlueWater/BlueWater/Assets/Low Poly Modular Terrain Pack/Bonus_Assets/Scripts/ModularTerrainSunControl.cs

15 lines
370 B
C#
Raw Normal View History

2023-08-13 16:13:03 +00:00
using UnityEngine;
using System.Collections;
public class ModularTerrainSunControl : 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);
}
}