25 lines
441 B
C#
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
|
|
}
|
|
}
|