示例#1
0
文件: House.cs 项目: GreenCalx/LD41
 // Use this for initialization
 void Start()
 {
     HP            = 10;
     isStaticBonus = true;
     staticEvents  = new List <CoreEvent>(1);
     staticEvents.Add(EventBank.generateMaxPopulationEvent(houseSize));
 }
示例#2
0
文件: House.cs 项目: GreenCalx/LD41
 void Destroy()
 {
     staticEvents.Add(EventBank.generateMaxPopulationEvent((-1) * houseSize));
 }