KunaiRotation.cs 301 B

123456789101112131415161718
  1. using UnityEngine;
  2. using System.Collections;
  3. public class KunaiRotation : MonoBehaviour
  4. {
  5. public float xSpeed;
  6. public float ySpeed;
  7. public float zSpeed;
  8. void Start ()
  9. {
  10. }
  11. void Update ()
  12. {
  13. transform.Rotate (xSpeed * Time.deltaTime, ySpeed * Time.deltaTime, zSpeed * Time.deltaTime);
  14. }
  15. }