13 lines
259 B
C#
13 lines
259 B
C#
![]() |
using System.Collections;
|
|||
|
using System.Collections.Generic;
|
|||
|
using UnityEngine;
|
|||
|
|
|||
|
public class RotatingObject : MonoBehaviour
|
|||
|
{
|
|||
|
public Vector3 RotationSpeed;
|
|||
|
void Update()
|
|||
|
{
|
|||
|
transform.Rotate(RotationSpeed * Time.deltaTime * 60f);
|
|||
|
}
|
|||
|
}
|