title: Disable click after one click in phaser.io using JavaScript
body: <p>I have three buttons like this:</p>
  
  <pre class="lang-js prettyprint-override"><code>astroid: function() {
  
      astroid1 = this.add.button(15, 80, 'astroid1', this.astroid1Clicked, this);
      astroid2 = this.add.button(200, 10, 'astroid2', this.astroid2Clicked, this);
      astroid3 = this.add.button(400, 40, 'astroid3', this.astroid3Clicked, this);
      astroid4 = this.add.button(622, 90, 'astroid4', this.astroid4Clicked, this);
  },
  </code></pre>
  
  <p>and have function for every button clicked:</p>
  
  <pre class="lang-js prettyprint-override"><code>// Observing which asteroid is clicked and checking answer accordingly.
  astroid1Clicked: function() {
      this.fire();
  
      //console.log(astroidContains[0]);
      // console.log(answear);
      //this.isCorrectAnswerHit(25, 100);
      if (astroidContains[0] == answear) {
          setTimeout(function() {
              //50 and 100 are the axis of astroid1
              Game.isCorrectAnswerHit(50, 100);
          }, 500);
      } else {
          this.isWrongAnswerHit();
      }
      allowClick = false;
  
      return false;
  },
  
  astroid2Clicked: function() {
  
      this.fire();
  
      //console.log(astroidContains[1]);
      //console.log(answear);
      if (astroidContains[1] == answear) {
          setTimeout(function() {
              Game.isCorrectAnswerHit(260, 10);
          }, 500);
      } else {
          this.isWrongAnswerHit();
      }
  
      allowClick = false;
      return false;
  },
  
  astroid3Clicked: function() {
  
      this.fire();
  
      //console.log(astroidContains[2]);
      //console.log(answear);
      if (astroidContains[2] == answear) {
          setTimeout(function() {
              Game.isCorrectAnswerHit(450, 40);
          }, 500);
      } else {
          this.isWrongAnswerHit();
      }
      allowClick = false;
      return false;
  },
  
  astroid4Clicked: function() {
  
      this.fire();
      //bullets.destroy();
      //console.log(astroidContains[3]);
      //console.log(answear);
      if (astroidContains[3] == answear) {
          setTimeout(function() {
              Game.isCorrectAnswerHit(620, 100);
          }, 500);
      } else {
          this.isWrongAnswerHit();
      }
      allowClick = false;
      return false;
  },
  </code></pre>
  
  <p>I want as user clicks on one button that time all button will disable including button at which user click, all function will execute and then user can able to click on any button. Please help me I tried many thing but they are not working as I want, and it should be without jQuery.</p>