Esempio n. 1
0
 public void SetFootprintOccupied(BuildingLocation location, BuildingFootprint footprint, bool value)
 {
     for (int i = 0; i < footprint.footprint.Length; i++)
     {
         SetCellOccupied(location.GetX() + footprint.footprint[i].x, location.GetZ() + footprint.footprint[i].z, value);
     }
 }
Esempio n. 2
0
        public virtual void Initialize(BuildingManager buildMan, BuildingLocation location)
        {
            this.buildMan = buildMan;
            this.location = location;
            details       = BuildingManager.GetBuildingDetails(type);

            isBuilt = false;
        }