示例#1
0
 public static void ShowHidePopulationSacrificeButton(Amplitude.Unity.Game.Empire observer, DepartmentOfScience departmentOfScience, AgeControlButton populationSacrificeButton)
 {
     if (departmentOfScience.CanSacrificePopulation() && departmentOfScience.Empire == observer)
     {
         populationSacrificeButton.AgeTransform.Visible = true;
     }
     else
     {
         populationSacrificeButton.AgeTransform.Visible = false;
     }
 }