Пример #1
0
    public void UpdateExpBar()
    {
        float xpFraction = playerStats.GetExpFraction();

        expBar.value = xpFraction;
        expText.text = ((int)(xpFraction * 100)).ToString() + "%";
    }