Пример #1
0
 override public void SetBasement(Plane b, PixelPosByte pos)
 {
     if (b == null)
     {
         return;
     }
     SetBuildingData(b, pos);
     if (current != null & current != this)
     {
         current.Annihilate(StructureAnnihilationOrder.ManualDestructed);
     }
     current = this;
 }
Пример #2
0
 override public void SetBasement(Plane b, PixelPosByte pos)
 {
     if (b == null)
     {
         return;
     }
     SetBuildingData(b, pos);
     if (current != null & current != this)
     {
         current.Annihilate(true, true, false);
     }
     current = this;
 }
Пример #3
0
 override public void Annihilate(StructureAnnihilationOrder order)
 {
     if (destroyed)
     {
         return;
     }
     else
     {
         destroyed = true;
     }
     PrepareBuildingForDestruction(order);
     if (current == this)
     {
         current = null;
     }
     Destroy(gameObject);
 }
Пример #4
0
 override public void Annihilate(bool clearFromSurface, bool returnResources, bool leaveRuins)
 {
     if (destroyed)
     {
         return;
     }
     else
     {
         destroyed = true;
     }
     PrepareBuildingForDestruction(clearFromSurface, returnResources, leaveRuins);
     if (current == this)
     {
         current = null;
     }
     Destroy(gameObject);
 }