Ich weiß, dass das Kugelobjekt, aber es ist ein Weg, um es nicht zu erfüllen.
Code: Select all
using UnityEngine;
public class MoonRotator : MonoBehaviour
{
public float rotationSpeed = 10f;
void Update()
{
transform.Rotate(Vector3.up, rotationSpeed * Time.deltaTime);
}
}