Files
BITFALL/Assets/Plugins/FImpossible Creations/Plugins - Level Design/PGG/Demos - PGG/Demos Assets/Scripts/RotatingObject.cs

13 lines
259 B
C#
Raw Normal View History

2023-11-30 00:23:23 +08:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class RotatingObject : MonoBehaviour
{
public Vector3 RotationSpeed;
void Update()
{
transform.Rotate(RotationSpeed * Time.deltaTime * 60f);
}
}