Ejemplo n.º 1
0
    public void Sub(float magnitude)
    {
        prev        = percent;
        percent    -= increment / 100f * (magnitude * 21);
        lerpPercent = 0f;
        update      = true;

        if (percent < 0)
        {
            percent = 0;
        }

        if (percent == 0)
        {
            cleanHouseMeter.AddHouse(incToHouseMeter);
        }
    }
Ejemplo n.º 2
0
    public void Add(float magnitude)
    {
        prev        = percent;
        percent    += increment / 100f * (magnitude * 21);//12);
        lerpPercent = 0f;
        update      = true;

        if (percent > 1)
        {
            percent = 1;
        }

        if (percent == 1)
        {
            dirtyHouseMeter.AddHouse(incToHouseMeter);
        }
    }