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

16 lines
366 B
C#

using UnityEngine;
using Core;
using Script.Gameplay.Input;
namespace UI
{
public class StartGameButton : UIBase
{
public string levelName = "Level1";
public void StartGame()
{
ScenesManager.Instance.LoadGameplay(levelName);
InputManager.Instance.SetCursorState(false,CursorLockMode.Locked);
}
}
}