Example #1
0
        // TODO Figure out how to get
        // colortest1.offset = pulsers[0] and other similar things out of here
        private void GoalPulse()
        {
            CollisionDetect(rctPlayer, rctBlueGoal);
            CollisionDetect(rctTarget, rctGoal);

            Pulser.Pulsing(Pulsers, PulseBool);
            colorTest1.Offset = Pulsers[0];
            colorTest1.Offset = Pulsers[1];
            enmColor.Offset   = Pulsers[2];
            d.Offset          = Pulsers[3];


            win[0] = rdL.Offset;
            win[1] = blL.Offset;

            Pulser.WinPulse(win, winBool);

            rdL.Offset = win[0];
            blL.Offset = win[1];

            if (rctLight.Opacity > 0.5)
            {
                rctLight.Opacity -= 0.03;
            }
            else
            {
                rctLight.Opacity += 0.03;
            }
        }