Beispiel #1
0
 public void CutBack()
 {
     if (isCorrectPositionFirst(Saw.transform.position.x))
     {
         TrueNumber++;
         SetBackAnimations(true);
         PlayBackAnimations();
         PlaySawAnimation();
         CloseFirst.SetActive(false);
         FirstOkay.SetActive(true);
         FirstButton.SetActive(false);
         firstCutted = true;
         CheckTrue();
     }
     else
     {
         WrongPlacePanel.SetActive(true);
     }
 }
Beispiel #2
0
    private void SetAllButtons(bool active)
    {
        GoBackButton.SetActive(!active);

        if (!firstCutted)
        {
            FirstButton.SetActive(active);
            FirstZoomButton.SetActive(active);
        }
        if (!secondCutted)
        {
            SecondButton.SetActive(active);
            SecondZoomButton.SetActive(active);
        }
        if (!thirdCutted)
        {
            ThirdButton.SetActive(active);
            ThirdZoomButton.SetActive(active);
        }
    }