예제 #1
0
 public void OnPointerClick(PointerEventData eventData)
 {
     AudioProvider.getInstance().playAudio("Standard Button");
     if (infoButton.isShown())
     {
         infoButton.OutAnimation();
     }
     else
     {
         infoButton.Display();
     }
 }
예제 #2
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);
     }
 }