整合包
gameplay bundle has been imported together
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
using TMPro;
|
||||
using UnityEngine.SceneManagement;
|
||||
|
||||
public class SongSelectUI : MonoBehaviour
|
||||
{
|
||||
@@ -8,6 +9,9 @@ public class SongSelectUI : MonoBehaviour
|
||||
public GameObject songButtonPrefab; // 歌曲按钮的 Prefab (Button)
|
||||
public Transform contentPanel; // 滚动视图的 Content 面板
|
||||
|
||||
|
||||
[SerializeField] Button button_Main;
|
||||
[SerializeField] string ui_Main_Scene_Name = "UI_UI";
|
||||
void Start()
|
||||
{
|
||||
if (songList == null || songButtonPrefab == null || contentPanel == null)
|
||||
@@ -16,6 +20,8 @@ public class SongSelectUI : MonoBehaviour
|
||||
return;
|
||||
}
|
||||
|
||||
button_Main.onClick.AddListener(
|
||||
() => SceneManager.LoadScene(ui_Main_Scene_Name, LoadSceneMode.Single));
|
||||
DisplaySongs();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user