Пример #1
0
 @Override
 public void onClickEnd(int x, int y) {
   if (loosesFocus) {
     activate(false);
   }
   if (Game.getPlayer() != null) Game.getPlayer().isWalkingBlocked = false;
 }
Пример #2
0
 @Override
 public void onClickStart(int x, int y, int mouseButton) {
   activate(true);
   if (Game.getPlayer() != null) {
     Game.getPlayer().isWalkingBlocked = true;
     Game.getPlayer().setWalking(false);
   }
 }