Files
Cielonos/Assets/OtherPlugins/HUD-Navigation-System/_Examples/ExampleScene/Scripts/ExampleRotatePrism.cs
SoulliesOfficial ef7b479712 initial
2025-11-25 08:19:33 -05:00

25 lines
441 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace SickscoreGames.ExampleScene
{
public class ExampleRotatePrism : MonoBehaviour
{
#region Variables
[Range(0f, 100f)]
public float rotationSpeed = 75f;
#endregion
#region Main Methods
void Update ()
{
// rotate prism
if (rotationSpeed > 0f)
transform.Rotate (0f, rotationSpeed * Time.deltaTime, 0f);
}
#endregion
}
}