Esempio n. 1
0
        private int currentPopulation; //current number of spawned units.

        //update the current population
        public void UpdateCurrentPopulation(int value)
        {
            currentPopulation += value;
            //custom event trigger:
            CustomEvents.OnCurrentPopulationUpdated(this, value);
        }