/// <summary> /// Call this function to change the material the rocket is made of. /// Different materials affect the mass of the rocket and cost of the rocket. /// </summary> /// <param name="value">The index of the rocket material to use.</param> public void SetRocketMaterial(int value) { currentMaterialIndex = value; UIManager.Instance.UpdateRocketMaterial(rocketMaterials[value]); rocket.SetMass(rocketMaterials[value].weight); UpdateBudget(); }