Esempio n. 1
0
 public void SpawnEntitys()
 {
     if (DisplayBlock)
     {
         BuildingBlock block = Entity.GetComponent <BuildingBlock>();
         if (block != null)
         {
         }
         Entity.Spawn();
         if (block != null)
         {
             block.SetGrade(BuildingGrade.Enum.TopTier);
             block.SetHealthToMax();
             block.cachedStability = 100;
         }
     }
     if (Stair != null)
     {
         Stair.SpawnEntitys();
     }
     if (FloorFrame != null)
     {
         FloorFrame.SpawnEntitys();
     }
     if (LadderHatch != null)
     {
         LadderHatch.SpawnEntitys();
     }
     if (Roof != null)
     {
         Roof.SpawnEntitys();
     }
     foreach (Block wall in Walls)
     {
         wall.SpawnEntitys();
     }
 }