no changes

This commit is contained in:
Lorenzo
2022-04-11 17:39:52 +02:00
parent 50162171d6
commit bc0601ecf8
5 changed files with 749 additions and 852 deletions

View File

@@ -16,6 +16,8 @@ public class SelectedItemMenu : MonoBehaviour
[Header("upgrade menu")]
public GameObject upgradeMenu;
public Transform upgrade_statParent;
public Transform price_statParent;
void Start()
{
@@ -59,6 +61,9 @@ public class SelectedItemMenu : MonoBehaviour
{
upgrade_statParent.GetChild(i).GetChild(0).GetComponent<TMP_Text>().text = stats[i].name;
upgrade_statParent.GetChild(i).GetChild(1).GetComponent<TMP_Text>().text = stats[i].value;
// price_statParent.GetChild(1).GetComponent<TMP_Text>().text = stats[i].price;
Debug.Log(price_statParent);
}
}
if (upgrade_statParent.childCount > stats.Count)