Esempio n. 1
0
    public void GrantXP(int xp)
    {
        int currentLevel = GetCurrentLevel();

        experience += xp;

        menu.UpdateMenu();

        if (currentLevel < GetCurrentLevel())
        {
            OnLevelUp();
        }
    }
 //更新游戏数值UI
 public void UIUpdate()
 {
     characterMenu.UpdateMenu();
     characterHUD.UpdateHUD();
 }