UIScript.LevelButton C# (CSharp) Method

LevelButton() public method

public LevelButton ( int level ) : void
level int
return void
    public void LevelButton(int level)
    {
        Debug.Log("Button Pressed");
        Time.timeScale = 1.0f;
        LevelsScreen.SetActive(false);
        GameMenu.SetActive(false);
        MenuScript.levelNum = level;
        Application.LoadLevel("LoadingScreen");
    }