Exemplo n.º 1
0
    void Start()
    {
        levels.Add(Attribute.DAMAGE, damageLevels);
        levels.Add(Attribute.KNOCKBACK, knockbackLevels);
        levels.Add(Attribute.LUCK, LuckLevels);
        levels.Add(Attribute.SPEED, speedLevels);
        levels.Add(Attribute.STAMINA, staminaLevels);

        currentLevel.Add(Attribute.DAMAGE, 0);
        currentLevel.Add(Attribute.KNOCKBACK, 0);
        currentLevel.Add(Attribute.LUCK, 0);
        currentLevel.Add(Attribute.SPEED, 0);
        currentLevel.Add(Attribute.STAMINA, 0);

        // Update panel text
        panel.UpdateText(
            levels[Attribute.DAMAGE][currentLevel[Attribute.DAMAGE]].price,
            levels[Attribute.SPEED][currentLevel[Attribute.SPEED]].price,
            levels[Attribute.KNOCKBACK][currentLevel[Attribute.KNOCKBACK]].price);
    }