| 123456789101112 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class RotSelf : MonoBehaviour
- {
- public Vector3 rotationSpeed = new Vector3(0, 60, 0);
- void Update()
- {
- transform.Rotate(rotationSpeed * Time.deltaTime, Space.Self);
- }
- }
|