14 lines
382 B
C#
14 lines
382 B
C#
using UnityEngine;
|
|
|
|
public class LoadingRotator : MonoBehaviour
|
|
{
|
|
[Header("Kecepatan Muter")]
|
|
public float speed = 200f; // Kalau kurang ngebut, ganti jadi 500
|
|
|
|
void Update()
|
|
{
|
|
// Mutar sumbu Z (melawan arah jarum jam)
|
|
// Kalau mau searah jarum jam, hapus tanda minus (-) di depan speed
|
|
transform.Rotate(0, 0, speed * Time.deltaTime);
|
|
}
|
|
} |