Middle Menu

This commit is contained in:
GamerClassN7 2021-01-31 03:38:13 +01:00
parent 4b374c6805
commit a258192ef6
5 changed files with 1443 additions and 13 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,5 @@
fileFormatVersion: 2
guid: 89e3b8217119e5342a8150f4a2b3cc44
folderAsset: yes
guid: b96b6e60af62e3d408311cac96ff2f47
DefaultImporter:
externalObjects: {}
userData:

View File

@ -30,7 +30,6 @@ public class MainMenu : MonoBehaviour
public void Credits()
{
StartCoroutine(GetText("dev.steelants.cz/GGJ2021/GeorgeJones/Server/api.php"));
ScoreText.text = "test";
}
public void QuitGame()
@ -39,6 +38,11 @@ public class MainMenu : MonoBehaviour
Application.Quit();
}
public void BackToMainMenu()
{
SceneManager.LoadScene(0);
}
public void ScoreSubmit()
{
WWWForm form = new WWWForm();
@ -49,6 +53,10 @@ public class MainMenu : MonoBehaviour
SceneManager.LoadScene(0);
}
public void RestartLevel(){
}
IEnumerator GetText(string uri) {
UnityWebRequest www = UnityWebRequest.Get(uri);
yield return www.SendWebRequest();

File diff suppressed because one or more lines are too long

View File

@ -23,4 +23,7 @@ EditorBuildSettings:
- enabled: 1
path: Assets/Scenes/Menu/FinalMenu.unity
guid: e728960f94bcba84089c530dec85aa8d
- enabled: 1
path: Assets/Scenes/Menu/MiddleMenu.unity
guid: b96b6e60af62e3d408311cac96ff2f47
m_configObjects: {}