コード例 #1
0
  public void getShell() {
    if (InputUtility.isMouseLeftDownTrigger()) {

      if (defaultX <= InputUtility.getMouseX() && defaultX + 75 >= InputUtility.getMouseX()) {

        if (defaultY <= InputUtility.getMouseY() && defaultY + 75 >= InputUtility.getMouseY()) {
          canBuy = true;
          InputUtility.setMouseLeftDownTrigger(false);
        }
      }
    } else canBuy = false;
  }