예제 #1
0
 public void AddExperience(float exp)
 {
     currentLevelExperience += exp;
     if (currentLevelExperience >= experienceToLevel)
     {
         currentLevelExperience -= experienceToLevel;
         LevelUp();
     }
     gui.SetPlayerExperience(currentLevelExperience / experienceToLevel, level);
 }
예제 #2
0
    public void AddExperience(float exp)
    {
        currentLevelExperience += exp;
        if (currentLevelExperience >= experienceToLevel)
        {
            currentLevelExperience -= experienceToLevel;
            LevelUp();
        }

        gui.SetPlayerExperience(currentLevelExperience / experienceToLevel, level);

        Debug.Log("EXP: " + currentLevelExperience + "   Level: " + level);
    }