mirror of
https://github.com/Project-Redacted/project-hampter.git
synced 2025-05-31 15:53:15 +00:00
Update :3
This commit is contained in:
parent
1f50b3f262
commit
6bbd56a5cf
759 changed files with 269694 additions and 37600 deletions
45
Assets/MainMenuStuffs/MenuScript.cs
Normal file
45
Assets/MainMenuStuffs/MenuScript.cs
Normal file
|
@ -0,0 +1,45 @@
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Audio;
|
||||
using UnityEngine.SceneManagement;
|
||||
|
||||
public class MenuScript : MonoBehaviour
|
||||
{
|
||||
// Scene changer
|
||||
public void Difficulty()
|
||||
{
|
||||
SceneManager.LoadScene("TempDiffScene");
|
||||
}
|
||||
public void MainMenu()
|
||||
{
|
||||
SceneManager.LoadScene("TempMainMenu");
|
||||
}
|
||||
public void Settings()
|
||||
{
|
||||
SceneManager.LoadScene("Settings");
|
||||
}
|
||||
public void Easy()
|
||||
{
|
||||
SceneManager.LoadScene("25x25Scene");
|
||||
Time.timeScale = 1f;
|
||||
}
|
||||
public void Medium()
|
||||
{
|
||||
SceneManager.LoadScene("35x35Scene");
|
||||
Time.timeScale = 1f;
|
||||
}
|
||||
public void Hard()
|
||||
{
|
||||
SceneManager.LoadScene("50x50Scene");
|
||||
Time.timeScale = 1f;
|
||||
}
|
||||
|
||||
|
||||
// Buttons
|
||||
public void ExitGame()
|
||||
{
|
||||
Application.Quit();
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue