本文整理汇总了C#中Category类的典型用法代码示例。如果您正苦于以下问题:C#Category类的具体用法?C#Category怎么用?C#Category使用的例子?这里精选的类代码示例或许可以为您提供帮助。
示例1:LocalPlayer
publicLocalPlayer(Worldworld,Vector2position,CategorycollisionCat,floatscale,floatlimbStrength,floatlimbDefense,boolevilSkin,Colorcolor,PlayerIndexplayer)
:base(world,position,collisionCat,scale,limbStrength,limbDefense,evilSkin,color)
{
this.player=player;
punchBtnPressed=punchKeyPressed=false;
kickBtnPressed=kickKeyPressed=false;
shootBtnPressed=shootKeyPressed=false;
trapBtnPressed=trapKeyPressed=false;
usesKeyboard=!GamePad.GetState(player).IsConnected;
lastShootAngle=0f;
jumpBtn=Buttons.A;
rightBtn=Buttons.LeftThumbstickRight;
leftBtn=Buttons.LeftThumbstickLeft;
crouchBtn=Buttons.LeftTrigger;
punchBtn=Buttons.X;
kickBtn=Buttons.B;
shootBtn=Buttons.RightTrigger;
trapBtn=Buttons.Y;
upKey=Keys.W;
rightKey=Keys.D;
leftKey=Keys.A;
downKey=Keys.S;
trapKey=Keys.T;
}
原文链接:
http://www.jxszl.com/biancheng/C/556689.html