Files
bansonic_beta_main/Assets/scripts/Main_main/pressStart.cs
T
FloatGaming 1d818fa4eb 整合包
gameplay bundle has been imported together
2025-08-09 18:29:32 +08:00

26 lines
595 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class pressStart : MonoBehaviour
{
public string sceneName_toNextScene = "selectYourSongFirst";
// Start is called before the first frame update
void Start()
{
//sceneName_toNextScene = "Songs_Select";
}
// Update is called once per frame
void Update()
{
if (Input.GetKeyDown(KeyCode.Space) ||
Input.GetMouseButtonDown(0))
{
SceneManager.LoadScene(sceneName_toNextScene);
}
}
}