Changing a value of non-static float from a static function - C#