Rotate.cs 250 B

12345678910111213141516171819
  1. using UnityEngine;
  2. using System.Collections;
  3. public class Rotate : MonoBehaviour
  4. {
  5. Vector3 angle;
  6. void Start()
  7. {
  8. angle = transform.eulerAngles;
  9. }
  10. void Update()
  11. {
  12. angle.y += Time.deltaTime * 100;
  13. transform.eulerAngles = angle;
  14. }
  15. }