Exemplo n.º 1
0
 public ClickablePiece(string fileName, Vec2 position, int ID) : base(fileName, position, 9, 1)
 {
     _id        = ID;
     _selection = new EasyDraw(width + _selectionStrokeWidth * 2, height + _selectionStrokeWidth * 2);
     AddChild(_selection);
     _selection.SetOrigin(width / 2, height / 2);
     _selection.SetXY(-_selectionStrokeWidth / 2, -_selectionStrokeWidth / 2);
 }