OldBlueWater/BlueWater/Assets/Low Poly Modular Terrain Pack/Bonus_Assets/Scripts/ModularTerrainSunControl.cs
2023-08-14 01:13:03 +09:00

15 lines
370 B
C#

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);
}
}