Exemplo n.º 1
0
        public void OnBuild(BuildingBase buildingBase)
        {
            demoCondition.condition = (b) => VillageManager.Instance.inventory.CurrentStorage < VillageManager.Instance.inventory.StorageLimit - additionalStorage;
            this.buildingBase       = buildingBase;

            VillageManager.Instance.ChangeStorageCapacity(additionalStorage);
            buildingBase.AddDemolitionCondition(demoCondition);
        }
Exemplo n.º 2
0
 public virtual void OnBuild(BuildingBase buildingBase)
 {
     villageManager = VillageManager.Instance;
     villageManager.UnitCountEventHandler += OnUnitCountUpdate;
     villageManager.UnitCapacity          += UnitCapacity;
 }