Esempio n. 1
0
 /// <summary>
 /// Gets called when the the experience bar has 'leveled up'.
 /// </summary>
 /// <param name="expBar">The exp bar that has leveled up</param>
 private void On_LevelUp(UIExperienceBar expBar)
 {
     label.text = levelString + expBar.GetCurrentLevel;
 }
 /// <summary>
 /// Returns a specially formatted string for displaying player stats in the tooltip.
 /// </summary>
 /// <param name="expBar"></param>
 /// <returns></returns>
 string CreateEXPString(UIExperienceBar expBar)
 {
     return("Level: " + expBar.GetCurrentLevel + "\n"
            + "EXP: " + expBar.GetExperienceTowardsLevel + "/" + expBar.GetExperienceToNextLevel);
 }