Ejemplo n.º 1
0
    public void UpdateResistance(GameObject go)
    {
        UpdateButtonText resistance_text = go.GetComponent <UpdateButtonText>();

        if (!resistance_text.UpdateCosts())
        {
            return;
        }

        resistance_text.UpdateText(deceleration, deceleration * resistance_text.upgrade_factor, resistance_text.current_cost);
        deceleration *= resistance_text.upgrade_factor;
    }
Ejemplo n.º 2
0
    public void UpdateMaxRotation(GameObject go)
    {
        UpdateButtonText max_rotation_text = go.GetComponent <UpdateButtonText>();

        if (!max_rotation_text.UpdateCosts())
        {
            return;
        }

        max_speed += 0.5;
        max_rotation_text.current_value = max_speed / 6.0;
        max_rotation_text.UpdateText(max_rotation_text.current_value, max_rotation_text.current_value + (0.5 / 6.0), max_rotation_text.current_cost);
    }
Ejemplo n.º 3
0
    public void UpdateGoldRotation(GameObject go)
    {
        UpdateButtonText gold_rotation_text = go.GetComponent <UpdateButtonText>();

        if (!gold_rotation_text.UpdateCosts())
        {
            return;
        }

        gold_rotation_text.current_value = gold_rotation_text.base_value * gold_rotation_text.level;
        multiplier = base_multiplier * gold_rotation_text.current_value;
        gold_rotation_text.UpdateText(gold_rotation_text.current_value, gold_rotation_text.current_value + gold_rotation_text.base_value, gold_rotation_text.current_cost);
    }
Ejemplo n.º 4
0
    public void UpdateMinRotation(GameObject go)
    {
        if (min_speed + 0.5 > max_speed)
        {
            return;
        }
        UpdateButtonText min_rotation_text = go.GetComponent <UpdateButtonText>();

        if (!min_rotation_text.UpdateCosts())
        {
            return;
        }

        min_speed += 0.5;
        min_rotation_text.current_value = min_speed / 6.0;
        min_rotation_text.UpdateText(min_rotation_text.current_value, min_rotation_text.current_value - (0.5 / 6.0), min_rotation_text.current_cost);
    }