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