20 lines
522 B
C#
20 lines
522 B
C#
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);
|
|
}
|
|
}
|
|
} |