UI and mechanics update, v1.1.0

This commit is contained in:
Nicola Sovic
2022-03-10 18:34:15 +01:00
parent 9c92d59b17
commit 8f15cbdeb7
7 changed files with 130 additions and 26 deletions

View File

@@ -62,18 +62,18 @@ namespace Assets.Scripts
image.GetComponent<RawImage>().texture = skillIcon;
if (canPlayerCast(playerSecondary))
{
desc.GetComponent<Text>().text = skillname + "(Lvl." + level + ") (" + secondaryConsumption + ")";
desc.GetComponent<Text>().text = skillname + "(" + secondaryConsumption + ")";
}
else
{
desc.GetComponent<Text>().text = "Not castable (" + secondaryConsumption + ")";
desc.GetComponent<Text>().text = "(" + secondaryConsumption + " mana) " + "("+cooldown+" cd)";
}
}
public void displaySkill(GameObject image, GameObject desc)
{
image.GetComponent<RawImage>().texture = skillIcon;
desc.GetComponent<Text>().text = skillname + "(Lvl." + level + "): \r\n" + description;
desc.GetComponent<Text>().text = skillname + "(Mana: " + secondaryConsumption + "): \r\n" + description;
}
public void reduceCooldown()