Exemple #1
0
 public void CopyTile(BuildableTile tileToCopy)
 {
     // Copy all necessary attributes of the tileToCopy
     // Can override this on inherited class to copy all attributes
     this.scale           = tileToCopy.GetScale();
     this.tileStages      = tileToCopy.GetTileStages();
     this.needsBuilt      = tileToCopy.GetNeedsBuilt();
     this.preBuiltPrefabs = tileToCopy.GetPreBuiltPrefabs();
     this.requiredJob     = tileToCopy.GetRequiredJobType();
     this.bType           = tileToCopy.GetBuildingType();
     this.workers         = new List <Villager>();
 }