123456789101112131415161718 |
- using UnityEngine;
- using System.Collections;
- public class KunaiRotation : MonoBehaviour
- {
- public float xSpeed;
- public float ySpeed;
- public float zSpeed;
- void Start ()
- {
- }
- void Update ()
- {
- transform.Rotate (xSpeed * Time.deltaTime, ySpeed * Time.deltaTime, zSpeed * Time.deltaTime);
- }
- }
|