Hold() public method

public Hold ( ) : void
return void
示例#1
0
        public override void Action(SF4Control sf4control, bool sendInputs)
        {
            if (sendInputs)
            {
                sf4control.Hold(inputs);
            }

            if (PlaySound)
            {
                if (inputs.Intersect(Directions).Count() > 0)
                {
                    roadie.PlaySound(Roadie.HOLD_DIRECTION_SOUND);
                }
                if (inputs.Intersect(Buttons).Count() > 0)
                {
                    roadie.PlaySound(Roadie.HOLD_BUTTON_SOUND);
                }
            }
        }
        public override void Action(SF4Control sf4control, bool sendInputs)
        {
            if (sendInputs)
            {
                sf4control.Hold(inputs);
            }

            if (PlaySound)
            {
                if (inputs.Intersect(Directions).Count() > 0)
                {
                    roadie.PlaySound(Roadie.HOLD_DIRECTION_SOUND);
                }
                if (inputs.Intersect(Buttons).Count() > 0)
                {
                    roadie.PlaySound(Roadie.HOLD_BUTTON_SOUND);
                }
            }
        }