Function not repeating On Click?
<p>I'm trying to make a small Android game. My on click function however is not getting repeated... It adds one point the first time and then stops working. It looks correct to me.</p>

<pre><code>addButton.setOnClickListener(new View.OnClickListener(){

  public void onClick(View v) {
    playerScoreField = (TextView)findViewById(R.id.playerScore);
    int playerScore = 0;
    if(playerScore != target){
      playerScore++;
      playerScoreField.setText("You are at: " + playerScore);
    } else {
      addButton.setClickable(false);
      addButton.setEnabled(false);
      countDown.onFinish();
    }

  }  

});
</code></pre>
