I'm new and I have some "basic" questions.
I am doing a point counter, because many players want to create the function decrement / increment.
Increment function
public void incremento(int pt, int mago)
{
pt++;
switch (mago) {
case 1:
labelM1.Text = String.Format("{0} Pontos", pt);
break;
}
}
Button + (increase)
private void M1mais_Click(object sender, EventArgs e)
{
incremento(pt1, mago1);
}
But on the label where the current total of points should appear only increases the first time.
What's wrong? Is this the best way?