|
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);
|
|
}
|
|
|
|
}
|