Пример #1
0
 private void drawRoad()
 {
     if (level.isValidPath())
     {
         RoadPiece[] pieces = level.getRoad();
         if (pieces != null)
         {
             level.setLocked(true);
             succesPopup.Display();
             roadPlacer = new RoadPlacer(pieces);
             StartCoroutine(roadPlacer.Tick());
         }
     }
     else if (level.containsAllBlocks() && shouldShowFail())
     {
         failPopup.Display();
         level.setLocked(true);
     }
 }