public int UpdateOnHelipad(GameTime gameTime) { MustUpdate(gameTime); //landButton.Update(gameTime); float fillrateFl = 10000 / (float)gameTime.TotalGameTime.TotalSeconds; int fillRate = (int)Math.Round(fillrateFl); int cost = 0; cost += ammoSystem.FillAmountReturnAmmount(1); cost += fuelSystem.FillAmountReturnAmmount(fillRate); cost += healthSystem.FillAmountReturnAmmount(1); KeyboardState key = Keyboard.GetState(); if (UI.landButton.IsItPressed() || key.IsKeyDown(Keys.X) || key.IsKeyDown(Keys.L)) { lifting = true; } playerCanLand = true; return(cost); }