예제 #1
0
 public override void Action(SF4Control sf4control, bool sendInputs)
 {
     sf4control.waitFrames(frames);
     if (playSound) { roadie.playSound(Roadie.WAIT_SOUND); }
 }
예제 #2
0
        public override void Action(SF4Control sf4control, bool sendInputs)
        {
            if (sendInputs)
            {
                sf4control.press(inputs);
            }
            else
            {
                //press event waits 1 frame, if send inputs is disabled wait frame is maintained
                sf4control.waitFrames(1);
            }

            if (playSound)
            {
                if (inputs.Intersect(directions).Count() > 0)
                {
                    roadie.playSound(Roadie.PRESS_DIRECTION_SOUND);
                }
                if (inputs.Intersect(buttons).Count() > 0)
                {
                    roadie.playSound(Roadie.PRESS_BUTTON_SOUND);
                }
            }
        }