14 lines
435 B
C#
14 lines
435 B
C#
public class House : Building
|
|
{
|
|
public virtual float PopulationGiven => GlobalConfig.Instance.Current.populationGivenPerHouse;
|
|
public override void LevelStart()
|
|
{
|
|
ResourceManager.Instance.MaximumPopulation += PopulationGiven;
|
|
base.LevelStart();
|
|
}
|
|
public override void LevelDestroy()
|
|
{
|
|
ResourceManager.Instance.MaximumPopulation -= PopulationGiven;
|
|
base.LevelDestroy();
|
|
}
|
|
} |