using System.Collections; using System.Collections.Generic; using UnityEngine; public class Rotator : MonoBehaviour { float m_Angle; void Update() { m_Angle += Time.deltaTime * 10f; transform.rotation = Quaternion.Euler(m_Angle, m_Angle, m_Angle); } }