Загрузка данных
using UnityEngine; public class CubeRotator : MonoBehaviour { public float speed = 50f; Rigidbody2D rb; void Start() { rb = GetComponent<Rigidbody2D>(); } void FixedUpdate() { rb.MoveRotation(rb.rotation + speed * Time.fixedDeltaTime); } }