i get this error:
Assets\Scripts\Player.cs(39,13): error CS0120: An object reference is required for the non-static field, method, or property 'Score.score'
if (Score.score == 50)
{
SpeedUp();
}
void SpeedUp()
{
double v = PlayerSpeed + 0.1;
}
}
If i change the code int to static it fixes it but the player speed wont increase so that isnt an option.
I know that there are similar questions but they dont have the exact same problem as i do.