16 lines
279 B
C#
16 lines
279 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class JustRotate : MonoBehaviour {
|
|
|
|
public bool canRotate=true;
|
|
public float speed=10;
|
|
|
|
void Update ()
|
|
{
|
|
if(canRotate)
|
|
transform.Rotate(speed*Vector3.forward*Time.deltaTime);
|
|
}
|
|
}
|