Reworked menu and achievements

This commit is contained in:
finnchen123
2026-01-25 12:49:13 +01:00
parent eea4992538
commit 93f02eee13
10 changed files with 256 additions and 87 deletions

View File

@@ -296,6 +296,16 @@ namespace Assets.Scripts
return result;
}
public string saveAudioSettings()
{
string result = "";
float music = GameObject.Find("slideMusic").GetComponent<Slider>().value;
float effects = GameObject.Find("slideEffects").GetComponent<Slider>().value;
result = result + "Music:" + music + "\r\n";
result = result + "Effects:" + effects;
return result;
}
public void openPauseMenu()
{
hideOtherElements(pauseMenu);
@@ -313,7 +323,7 @@ namespace Assets.Scripts
public void showDeathScreen()
{
state = UIState.DEATH;
PlayerObject player = GameObject.Find("Player").GetComponent<PlayerGameObject>().getPlayer();
GameObject statText = GameObject.Find("txtDeathStats");
string text = statText.GetComponent<Text>().text;