Beispiel #1
0
 public void LevelUpUpdateChargers(CharacterLevel level)
 {
     characterLevel = level;
     float oldMax = chargesMax;
     chargesMax = Mathf.Floor(level.GetCost() / cost * 100);
     chargesCurrent += chargesMax - oldMax;
 }
Beispiel #2
0
    protected void setCharges()
    {
        float costPost = 10;
        if(characterLevel != null)
        {
            costPost = characterLevel.GetCost();
        }

        chargesMax = Mathf.Floor(costPost / cost * 100);


        chargesCurrent = chargesMax;
        nextChargesTillReload = chargesMax - loadSize;
    }