using System.Collections; using System.Collections.Generic; using UnityEngine; namespace Script.Gameplay { public class StartMenuBallRotation : MonoBehaviour { [SerializeField] private float rotationSpeedY = 50f; // Y轴旋转速度 [SerializeField] private float rotationSpeedX = 15f; // X轴旋转速度 [SerializeField] private float rotationSpeedZ = 8f; // Z轴旋转速度 void Update() { // 多轴旋转 transform.Rotate( rotationSpeedX * Time.deltaTime, rotationSpeedY * Time.deltaTime, rotationSpeedZ * Time.deltaTime, Space.Self ); } } }