SW 중심대학 OSS GIT 서버 박건태, 이승준, 고기완, 이준호 새로운 배포
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

4 years ago
  1. using UnityEngine;
  2. using System.Collections;
  3. public class Rotate : MonoBehaviour {
  4. public float speed;
  5. private float yRotataion;
  6. // Update is called once per frame
  7. void FixedUpdate ()
  8. {
  9. yRotataion += speed;
  10. gameObject.transform.rotation = Quaternion.Euler(0f,yRotataion,0f);
  11. }
  12. }