public void UpdateExpBar() { float xpFraction = playerStats.GetExpFraction(); expBar.value = xpFraction; expText.text = ((int)(xpFraction * 100)).ToString() + "%"; }