You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
318 B
15 lines
318 B
using UnityEngine;
|
|
using System.Collections;
|
|
|
|
public class Rotate : MonoBehaviour {
|
|
|
|
public float speed;
|
|
private float yRotataion;
|
|
|
|
// Update is called once per frame
|
|
void FixedUpdate ()
|
|
{
|
|
yRotataion += speed;
|
|
gameObject.transform.rotation = Quaternion.Euler(0f,yRotataion,0f);
|
|
}
|
|
}
|