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.
13 lines
355 B
13 lines
355 B
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class Rotate_Test : MonoBehaviour
|
|
{
|
|
|
|
// Start is called before the first frame update
|
|
private Vector3 rotationSpeed = new Vector3(0, 6, 0);
|
|
void Update(){
|
|
this.gameObject.transform.Rotate(rotationSpeed * Time.deltaTime, Space.Self);
|
|
}
|
|
}
|