feat():调整Level碰撞盒,添加Skybox,完成开始界面雏形
This commit is contained in:
24
Assets/Script/Gameplay/StartMenuBallRotation.cs
Normal file
24
Assets/Script/Gameplay/StartMenuBallRotation.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
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
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user