ici_recycle_vr/Assets/LiquidVolumePro/Demos/Scattering/DemoResources/Scripts/RotateLight.cs
Diaconescu Andrei-Alexandru 19674bfe5d Am adaugat ICI Recycle
2025-05-26 12:54:36 +03:00

20 lines
378 B
C#

using UnityEngine;
using System.Collections;
namespace LiquidVolumeFX {
public class RotateLight : MonoBehaviour {
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
float t = Mathf.PingPong (Time.time * 8f, 40) - 5;
transform.localRotation = Quaternion.Euler (new Vector3 (2f, 180 + t, 0));
}
}
}