Exemplo n.º 1
0
    public void DoActionWaterLevel()
    {
        if (!s1.activated && !s2.activated && !s3.activated)
        {
            sd.setsEnabled(true);
        }

        int count = getActivationCount(s3.activated, s2.activated, s1.activated);

        if (count == 0)
        {
            w0.goToLevel0();
            w1.goToLevel0();
            w2.goToLevel0();
        }
        else if (count == 1)
        {
            w0.goToLevel1();
            w1.goToLevel1();
        }
        else if (count == 2)
        {
            w0.goToLevel2();
            w1.goToLevel2();
        }
        if (count == 3)
        {
            w0.goToLevel3();
            w1.goToLevel3();
        }

        if (sd.activated)
        {
            //bc.goToLeve1();
            w0.goToLevel4Level1();
            w1.goToLevel4Level1();
            w2.goToLevel4();

            s1.setsEnabled(false);
            s2.setsEnabled(false);
            s3.setsEnabled(false);
        }
        else
        {
            w2.goToLevel0();
        }

        if (s4.activated)
        {
            w2.goToLevel5();
            //bc.goToLevel2();
        }
    }