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.

20 lines
377 B

4 years ago
  1. using UnityEngine;
  2. using System.Collections;
  3. // Cartoon FX - (c) 2015 Jean Moreno
  4. // Indefinitely rotates an object at a constant speed
  5. public class CFX_AutoRotate : MonoBehaviour
  6. {
  7. // Rotation speed & axis
  8. public Vector3 rotation;
  9. // Rotation space
  10. public Space space = Space.Self;
  11. void Update()
  12. {
  13. this.transform.Rotate(rotation * Time.deltaTime, space);
  14. }
  15. }