clickBottomMenuButton(x, y) {
    var buttons = this.gameState.bottomMenuView.activeButtons

    for (var i = 0; i < buttons.length; i++) {
      var button = buttons[i]

      if (x == button.x && y == button.y) {
        button.callback.call(button.context)

        return
      }
    }

  }
/**
   * Simulates click of a pointer to certain point in camera but only checks buttons
   * 
   * @param {number} x 
   * @param {number} y 
   */
Simulates click of a pointer to certain point in camera but only checks buttons

@param {number} x
@param {number} y
Simulates click of a pointer to certain point in camera but only checks buttons @param { number } x @param { number } y
clickBottomMenuButton(x, y) {
    var buttons = this.gameState.bottomMenuView.activeButtons
    for (var i = 0; i < buttons.length; i++) {
      var button = buttons[i]
      if (x == button.x && y == button.y) {
        button.callback.call(button.context)
        return
      }
    }
  }
clickBottomMenuButton ( x , y ) { var buttons = this . gameState . bottomMenuView . activeButtons for ( var i = 0 ; i < buttons . length ; i ++ ) { var button = buttons [ i ] if ( x == button . x && y == button . y ) { button . callback . call ( button . context ) return } } }
Simulates click of a pointer to certain point in camera but only checks buttons
Simulates click of a pointer to certain point in camera but only checks buttons