27 lines
616 B
C#
Raw Permalink Normal View History

2025-07-11 15:42:48 +05:00
/******************************************************************************/
/*
Project - MudBun
Publisher - Long Bunny Labs
http://LongBunnyLabs.com
Author - Ming-Lun "Allen" Chou
http://AllenChou.net
*/
/******************************************************************************/
using UnityEngine;
namespace MudBun
{
public class Rotator : MonoBehaviour
{
public Vector3 Speed = Vector3.zero;
private void Update()
{
Quaternion q = Quaternion.Euler(Speed * Time.deltaTime);
transform.rotation = q * transform.rotation;
}
}
}