20 lines
334 B
C#
Raw Normal View History

2025-09-06 17:17:39 +04:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PortalRotate : MonoBehaviour
{
private float speed;
private void Awake()
{
speed = Random.Range(2.5f, 25.0f);
}
void Update()
{
transform.Rotate(Vector3.forward * (speed * Time.deltaTime));
}
}