public float GetPropertieInitialCost(Constants.PropertiesTypes propertieType) { switch (propertieType) { case Constants.PropertiesTypes.RunAfterSpeed: return(runAfterSpeedPropertie.InitialCost); case Constants.PropertiesTypes.HumansNum: return(humansNumPropertie.InitialCost); case Constants.PropertiesTypes.Health: return(healthPropertie.InitialCost); case Constants.PropertiesTypes.ProjectilesNum: return(projectilesNumPropertie.InitialCost); default: return(0); } }
public void UpdateProperiteCostTxt(Constants.PropertiesTypes propertieType) { switch (propertieType) { case Constants.PropertiesTypes.RunAfterSpeed: runAfterSpeedPropertieCostTxt.text = "$" + propertiesManager.GetPropertieCost(propertieType).ToString(); break; case Constants.PropertiesTypes.HumansNum: humansNumPropertieCostTxt.text = "$" + propertiesManager.GetPropertieCost(propertieType).ToString(); break; case Constants.PropertiesTypes.Health: healthPropertieCostTxt.text = "$" + propertiesManager.GetPropertieCost(propertieType).ToString(); break; case Constants.PropertiesTypes.ProjectilesNum: projectilesNumPropertieCostTxt.text = "$" + propertiesManager.GetPropertieCost(propertieType).ToString(); break; default: break; } }