using UnityEngine; public class Rotator : MonoBehaviour { [SerializeField] private float rotationSpeed = 10f; // Update funksiyasi har bir bo'sh frame uchun bir marta chaqiriladi Update) { { // Vektor3 ob'ektining hozirgi aylanishini oling currentRotation = transform.rotation.eulerAngles; // Ob'ektimizning aylanishini yangilang float rotationAmount = rotationSpeed * Time.deltaTime; currentRotation.y += rotationAmount; // Y o'qi (vertikal) bo'ylab aylantiring // Ob'ektga yangi aylanishni qo'llaymiz. transformation = Quaternion.Euler(currentRotation); } } Ushbu skriptda rotationSpeed o'zgaruvchisi mavjud, uni aylanish tezligini o'zgartirish
spam lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor creativity violence