This repository has been archived on 2026-01-20. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
Frontec/Assets/Scripts/SJM/IndicatorRoller.cs
jmaniuvc 2936c48466 Frontec
2025-02-24 12:12:52 +09:00

23 lines
539 B
C#

using System.Collections;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
public class IndicatorRoller : MonoBehaviour
{
[Range(0, 120f)]
public float speed;
public Transform indicator;
private void Update()
{
indicator = GetComponent<Transform>();
var value = Time.deltaTime * speed;
var rot = indicator.rotation.eulerAngles;
rot.y += value;
indicator.rotation = Quaternion.Euler(rot);
}
}