Esempio n. 1
0
 //-------private
 void InitPlayer()
 {
     if (PlayerData.lvl < LvlExpModule.LvlCap)
     {
         NextLevelExp = LvlExpModule.GetRequiredExp(PlayerData.lvl + 1);
     }
     InitSkills();
     InitStats();
     InstaniateEquipment();
     //PUIC.UpdateExpBar();
 }
Esempio n. 2
0
 protected void InitPlayer()
 {
     InstaniateEquipmentModel();
     if (PlayerData.lvl < LvlExpModule.LvlCap)
     {
         NextLevelExp = LvlExpModule.GetRequiredExp(PlayerData.lvl + 1);
     }
     InitMaxStats();
     ApplyEquipmentsUtilities();
     InitSkillTree();
     InitOnCallEvent();
     ApplyBounuses();
     InitPassives();
     InitCurrStats();
 }
Esempio n. 3
0
 void CheckLevelUp()
 {
     if (PlayerData.lvl >= LvlExpModule.LvlCap)
     {
         return;
     }
     if (PlayerData.exp >= NextLevelExp)
     {
         PlayerData.lvl++;
         PlayerData.exp = 0;
         NextLevelExp   = LvlExpModule.GetRequiredExp(PlayerData.lvl + 1);
         AudioSource.PlayClipAtPoint(lvlup, transform.position, GameManager.SFX_Volume);
         PlayerData.StatPoints++;
         PlayerData.SkillPoints++;
     }
 }
Esempio n. 4
0
 protected void CheckLevelUp()
 {
     if (PlayerData.lvl >= LvlExpModule.LvlCap)
     {
         return;
     }
     if (PlayerData.exp >= NextLevelExp)
     {
         PlayerData.lvl++;
         PlayerData.exp = 0;
         CurrStats.Set(STATSTYPE.HEALTH, MaxStats.Get(STATSTYPE.HEALTH));
         CurrStats.Set(STATSTYPE.ESSENSE, MaxStats.Get(STATSTYPE.ESSENSE));
         NextLevelExp = LvlExpModule.GetRequiredExp(PlayerData.lvl + 1);
         AudioSource.PlayClipAtPoint(LevelUpSFX, transform.position, GameManager.SFX_Volume);
         PlayerData.SkillPoints++;
     }
 }