Ejemplo n.º 1
0
 void Update()
 {
     playerName.text     = "Character Name: " + player.playerName;
     statMultiplier.text = "Stat Multiplier: " + player.getStatBoost();
     soulPower.text      = "Soul Power: " + player.getSoulPower();
     STR.text            = formatTxt("STR", player.getRawSTR(), player.getBaseSTR(), player.getTotalSTR());
     DEX.text            = formatTxt("DEX", player.getRawDEX(), player.getBaseDEX(), player.getTotalDEX());
     INT.text            = formatTxt("INT", player.getRawINT(), player.getBaseINT(), player.getTotalINT());
     LUK.text            = formatTxt("LUK", player.getRawLUK(), player.getBaseLUK(), player.getTotalLUK());
     WIS.text            = formatTxt("WIS", player.getRawWIS(), player.getBaseWIS(), player.getTotalWIS());
     END.text            = formatTxt("END", player.getRawEND(), player.getBaseEND(), player.getTotalEND());
     HPSlider.value      = (float)player.getHP() / player.getMaxHP();
     HP.text             = "HP: " + player.getHP() + " / " + player.getMaxHP();
     MPSlider.value      = (float)player.getMP() / player.getMaxMP();
     MP.text             = "MP: " + player.getMP() + " / " + player.getMaxMP();
     StaminaSlider.value = (float)player.getStamina() / player.getMaxStamina();
     Stamina.text        = "Stamina: " + player.getStamina() + " / " + player.getMaxStamina();
 }