private bool FuelCheck() { int fuelNeeded = (int)(MapPoint.Distance(GameMaster.realMaster.globalMap.cityPoint, selectedDestination) * FUEL_BASE_COST); fuelLabel.text = Localization.GetPhrase(LocalizedPhrase.FuelNeeded) + fuelNeeded.ToString(); int c = (int)colony.storage.standartResources[ResourceType.FUEL_ID]; if (c > fuelNeeded) { fuelMarker.uvRect = UIController.GetIconUVRect(Icons.TaskCompleted); fuelLabel.color = Color.white; return(true); } else { fuelMarker.uvRect = UIController.GetIconUVRect(Icons.TaskFailed); fuelLabel.color = Color.red; return(false); } }