Exemplo n.º 1
0
 public void CutBody()
 {
     if (isCorrectPositionSecond(Saw.transform.position.x))
     {
         TrueNumber++;
         SetBodyAnimations(true);
         PlayBodyAnimations();
         PlaySawAnimation();
         CloseSecond.SetActive(false);
         SecondOkay.SetActive(true);
         SecondButton.SetActive(false);
         secondCutted = true;
         CheckTrue();
     }
     else
     {
         WrongPlacePanel.SetActive(true);
     }
 }
Exemplo n.º 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);
        }
    }