Space-Smash-Out/Assets/FORGE3D/Sci-Fi Effects/Examples/Code/F3DTurnTable.cs

24 lines
430 B
C#

using UnityEngine;
using System.Collections;
namespace FORGE3D
{
public class F3DTurnTable : MonoBehaviour
{
public float speed;
// Use this for initialization
void Start()
{
}
// Update is called once per frame
void Update()
{
transform.rotation = transform.rotation * Quaternion.Euler(0, speed * Time.deltaTime, 0);
}
}
}