예제 #1
0
 public void Destroye()
 {
     if (DisplayBlock)
     {
         //BuildingBlock block = Entity.GetComponent<BuildingBlock>();
         Entity.Kill();
     }
     if (Stair != null)
     {
         Stair.Destroye();
     }
     if (FloorFrame != null)
     {
         FloorFrame.Destroye();
     }
     if (LadderHatch != null)
     {
         LadderHatch.Destroye();
     }
     if (Roof != null)
     {
         Roof.Destroye();
     }
     foreach (Block wall in Walls)
     {
         wall.Destroye();
     }
 }