public void OnPointerClick(PointerEventData eventData) { AudioProvider.getInstance().playAudio("Reset"); placer.clearBlocks(); Level level = GameMode.getCurrentLevel(); level.setLocked(false); level.storeCompleteStatus(); }
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); } }