public void SetBoost(string boost) { float boostReturn; if (float.TryParse(boost, out boostReturn)) { Boost = boostReturn; } Boost = 1; }