24 lines
430 B
C#
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);
|
|
}
|
|
}
|
|
}
|