2025-10-14 12:39:53 +08:00
|
|
|
using UnityEngine;
|
|
|
|
|
using Core;
|
2025-10-26 09:32:28 +08:00
|
|
|
using Script.Gameplay.Input;
|
2025-10-26 09:56:23 +08:00
|
|
|
using Script.Gameplay.Global;
|
2025-10-14 12:39:53 +08:00
|
|
|
namespace UI
|
|
|
|
|
{
|
|
|
|
|
public class StartGameButton : UIBase
|
|
|
|
|
{
|
2025-10-20 09:34:22 +08:00
|
|
|
public string levelName = "Level1";
|
2025-10-26 09:56:23 +08:00
|
|
|
|
2025-10-14 12:39:53 +08:00
|
|
|
public void StartGame()
|
|
|
|
|
{
|
2025-10-26 09:56:23 +08:00
|
|
|
if (levelName == "Level1")
|
|
|
|
|
GameManager.Instance.StartGameplay();
|
|
|
|
|
else if (levelName == "Test")
|
|
|
|
|
GameManager.Instance.StartTest();
|
|
|
|
|
InputManager.Instance.SetCursorState(false, CursorLockMode.Locked);
|
2025-10-14 12:39:53 +08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|