public void levelUpMethod() { level += 1; requiredXP = ((level * 250) * ((float)level / 10)) + 600; lvlUpText.SetActive(false); lvlUpText.SetActive(true); soundManager soundManagerScript = GetComponent <soundManager>(); soundManagerScript.lvlUpSound(); }