@Override public void onClickEnd(int x, int y) { if (loosesFocus) { activate(false); } if (Game.getPlayer() != null) Game.getPlayer().isWalkingBlocked = false; }
@Override public void onClickStart(int x, int y, int mouseButton) { activate(true); if (Game.getPlayer() != null) { Game.getPlayer().isWalkingBlocked = true; Game.getPlayer().setWalking(false); } }