Files
2025TapTapGameJam/Assets/Script/Gameplay/UI/StartGameButton.cs

20 lines
522 B
C#
Raw Normal View History

using UnityEngine;
using Core;
using Script.Gameplay.Input;
using Script.Gameplay.Global;
namespace UI
{
public class StartGameButton : UIBase
{
public string levelName = "Level1";
public void StartGame()
{
if (levelName == "Level1")
GameManager.Instance.StartGameplay();
else if (levelName == "Test")
GameManager.Instance.StartTest();
InputManager.Instance.SetCursorState(false, CursorLockMode.Locked);
}
}
}