F3DTurnTable.cs 334 B

12345678910111213141516171819
  1. using UnityEngine;
  2. using System.Collections;
  3. public class F3DTurnTable : MonoBehaviour {
  4. public float speed;
  5. // Use this for initialization
  6. void Start () {
  7. }
  8. // Update is called once per frame
  9. void Update () {
  10. transform.rotation = transform.rotation * Quaternion.Euler(0, speed * Time.deltaTime, 0);
  11. }
  12. }