Help with Error CS0131

Code Tags

pD is declared as a const.

private const float pD = 165f;

That stands for constant, it means you aren’t allowed to change it’s value.

Which means you can’t assign it a new value like you’re trying to do here

pD=pD+65;

Take const out of its declaration if you are going to change it’s value.

private float pD = 165f;