ProjectCreep/Assets/TBTK/Scripts/Props/Rotate.cs

19 lines
298 B
C#

using UnityEngine;
using System.Collections;
public class Rotate : MonoBehaviour {
public float speed=15;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
transform.Rotate(-Vector3.up*Time.deltaTime*speed, Space.World);
}
}