i want to make a strig print the current thrust, and if its close to the hoverspeed to change colors to indicae so, anyway i am a bit new to c# and its giving me some errors, its probably something stupid, but i just cant find it. here is the code:
currThrust_GUI.text = new string("speed :" + thrust.ToString);
if (speed > hoverThrust - 100 && speed < hoverThrust + 100) currThrust_GUI.color = Color.green;
if (speed < hoverThrust - 100) currThrust_GUI.color = Color.yellow;
if (speed > hoverThrust + 100) currThrust_GUI.color = Color.blue;
the broblem is with the first line, it says the method is not correct. anyway thanks for your help.