Added german language, finished controller

This commit is contained in:
TAASONI3
2023-07-05 14:43:52 +02:00
parent 7aba856b17
commit 0dc2ff831f
127 changed files with 15311 additions and 356 deletions

View File

@@ -61,7 +61,7 @@ namespace Assets.Scripts
{
tiletype = "Spawn";
}
coordinates.GetComponent<Text>().text = tiletype + "(" + (int)position.x + "/" + (int)position.y + "/" + (int)position.z + ")";
coordinates.GetComponent<Text>().text = TextHandler.getText(tiletype) + "(" + (int)position.x + "/" + (int)position.y + "/" + (int)position.z + ")";
}
private void switchWaterLayer()
@@ -421,7 +421,7 @@ namespace Assets.Scripts
GameObject.Find("txtStrength").GetComponent<Text>().text = "STR: " + playerStats[4] + " (+" + equipment["STR"] + ")";
GameObject.Find("txtDexterity").GetComponent<Text>().text = "DEX: " + playerStats[5] + " (+" + equipment["DEX"] + ")";
GameObject.Find("txtIntelligence").GetComponent<Text>().text = "INT: " + playerStats[6] + " (+" + equipment["INT"] + ")";
GameObject.Find("txtHealth").GetComponent<Text>().text = "Health: " + playerStats[1] + " (+" + equipment["HP"] + ")";
GameObject.Find("txtHealth").GetComponent<Text>().text = TextHandler.getText("health") + " " + playerStats[1] + " (+" + equipment["HP"] + ")";
GameObject.Find("txtSecondary").GetComponent<Text>().text = "Mana: " + playerStats[3] + " (+" + equipment["MP"] + ")";
updateHealthUI(playerStats[0], playerStats[1] + equipment["HP"]);
@@ -442,7 +442,7 @@ namespace Assets.Scripts
GameObject secondary = GameObject.Find("btnSecondaryIncrease");
GameObject txtPoints = GameObject.Find("txtPoints");
txtPoints.GetComponent<Text>().text = "Your available points: " + points;
txtPoints.GetComponent<Text>().text = TextHandler.getText("points") + " " + points;
if (points > 0)
{