예제 #1
0
파일: Piece.cs 프로젝트: Robertk92/ChessAI
 protected override void Initialize()
 {
     DrawOrder = (int)DrawLayer.Piece;
     ChangeTexture(PieceType.GetTextureName(ControllingUnit), true, true);
     Position = StartNode.Position;
     EnablePhysicsRectangle(FarseerPhysics.Dynamics.BodyType.Dynamic, Bounds);
     PhysicsBody.GravityScale = 0.0f;
     PhysicsBody.IsSensor     = true;
 }