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
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
11
Assets/Script/Gameplay/StartMenuBallRotation.cs.meta
Normal file
11
Assets/Script/Gameplay/StartMenuBallRotation.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9435e253d83aaf34282ae266d1567564
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user