Exemple #1
0
    void ListenToLVChange()
    {
        if (lastKnownPlayerLevel != PlayerData.current.currentLevel)
        {
            // PLAY LV UP SFX
            lastKnownPlayerLevel = PlayerData.current.currentLevel;
            playerSFX.PlayLvUpSFX();

            // this check is added to fix a bug where you dont regen mana after level up
            isRegeneratingMana = false;

            // update relevant UI
            // update skill points notification
            unspentSkillPointCheck.ShowUIIfEnoughSkillPoints(skillPointNotification);
        }
    }
Exemple #2
0
 public void SpendSinPoints()
 {
     PlayerData.current.sinPoints--;
     UpdateSinPointsText();
     unspentSkillpointCheck.ShowUIIfEnoughSkillPoints(skillPointNotification);
 }