Beyond_Beyaan.Planet.RemoveRacePopulation C# (CSharp) Метод

RemoveRacePopulation() публичный Метод

public RemoveRacePopulation ( Race whichRace, float amount ) : void
whichRace Race
amount float
Результат void
        public void RemoveRacePopulation(Race whichRace, float amount)
        {
            _racePopulations[whichRace] -= amount;
            if (_racePopulations[whichRace] <= 0)
            {
                //They died out on this planet
                RemoveRace(whichRace);
            }
        }