libGDX : Paint And Remove Color From Actor with touchDragged
问题 I created two-dimensional array of Button actor, then I added new ClickListener() { touchDragged } as the following code: buttons = new Button[3][3]; for (int row = 0; row < buttons.length; row++) { for (int col = 0; col < buttons[0].length; col++) { buttons[row][col] = new Button(drawable); buttons[row][col].addListener(new ClickListener() { @Override public void touchDragged(InputEvent event, float x, float y, int pointer) { for (int row = 0; row < buttons.length; row++) { for (int col = 0;