示例#1
0
        /* ======================================== *\
         *           GETTERS AND SETTERS            *
        \* ======================================== */

        #endregion

        #region Functions 

        /* ======================================== *\
         *                FUNCTIONS                 *
        \* ======================================== */
        public CharacterWeaponLevel(CharacterWeaponLevelData data)
        {
            levelData = data;
            level = data.BaseLevel;
            for(int i = 1; i < level; i++)
                totalExperience += levelData.ExperienceCurve[(i - 1)];
            nextExperience = levelData.ExperienceCurve[(level - 1)];
        }
示例#2
0
 public CharacterWeaponLevel(CharacterWeaponLevelData data, int totalExp)
 {
     levelData = data;
     totalExperience = totalExp;
     CalculateLevel();
     for (int i = 1; i < level+1; i++)
         nextExperience += levelData.ExperienceCurve[i-1];
     nextExperience -= totalExperience;
     Debug.Log(nextExperience);
 }