超大量的更新 修复很多问题,gameplay特效初步

This commit is contained in:
FloatGaming
2026-02-14 23:46:20 +08:00
parent ef8eb67259
commit 3a7a0b4669
360 changed files with 85670 additions and 4144 deletions
@@ -1,4 +1,4 @@
using UnityEngine;
using UnityEngine;
using UnityEngine.UI;
using TMPro;
using UnityEngine.SceneManagement;
@@ -8,9 +8,9 @@ using DG.Tweening;
public class SongSelectUI : MonoBehaviour
{
public SongList songList; // 存储歌曲列表的 ScriptableObject
public GameObject songButtonPrefab; // 歌曲按钮的 Prefab (Button)
public Transform contentPanel; // 滚动视图的 Content 面板
public SongList songList; // Documentation text normalized.
public GameObject songButtonPrefab; // Documentation text normalized.
public Transform contentPanel; // Documentation text normalized.
[SerializeField] Button button_Main;
[SerializeField] string ui_Main_Scene_Name = "UI_UI";
@@ -42,6 +42,12 @@ public class SongSelectUI : MonoBehaviour
void Start()
{
// Defensive reset: prevent select-scene enter animations from freezing invisible.
if (Time.timeScale <= 0f)
{
Time.timeScale = 1f;
}
if (songList == null || songButtonPrefab == null || contentPanel == null)
{
Debug.LogError("请在 Inspector 中分配所有字段!");
@@ -73,7 +79,7 @@ public class SongSelectUI : MonoBehaviour
}
}
// 显示所有歌曲 (kept for manual use)
// Documentation text normalized.
public void DisplaySongs()
{
DisplaySongsFromList(songList != null ? songList.songs : null);
@@ -373,3 +379,4 @@ public class SongSelectUI : MonoBehaviour
// helper to avoid hardcoding scene name string in delegate - keeps serializer-friendly field
private string ui_Main_Scene_NAME() => ui_Main_Scene_Name;
}