Update MainMenu.cs
This commit is contained in:
parent
4536ae2f5d
commit
0cfe588fb0
@ -35,7 +35,7 @@ public class MainMenu : MonoBehaviour
|
|||||||
|
|
||||||
public void Score()
|
public void Score()
|
||||||
{
|
{
|
||||||
StartCoroutine(GetText("https://dev.steelants.cz/vasek/GGJ2021/GeorgeJones/Server/api.php"));
|
StartCoroutine(GetText("https://dev.steelants.cz/GGJ2021/GeorgeJones/Server/api.php"));
|
||||||
}
|
}
|
||||||
|
|
||||||
public void BackToMainMenu()
|
public void BackToMainMenu()
|
||||||
@ -60,7 +60,7 @@ public class MainMenu : MonoBehaviour
|
|||||||
form.AddField("name", name.text);
|
form.AddField("name", name.text);
|
||||||
form.AddField("score", DataManager.Score().ToString());
|
form.AddField("score", DataManager.Score().ToString());
|
||||||
|
|
||||||
StartCoroutine(PostText("https://dev.steelants.cz/vasek/GGJ2021/GeorgeJones/Server/api.php", form));
|
StartCoroutine(PostText("https://dev.steelants.cz/GGJ2021/GeorgeJones/Server/api.php", form));
|
||||||
DataManager.Level(0);
|
DataManager.Level(0);
|
||||||
SceneManager.LoadScene(0);
|
SceneManager.LoadScene(0);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user