示例#1
0
 public void CutLeg()
 {
     if (isCorrectPositionThird(Saw.transform.position.x))
     {
         TrueNumber++;
         SetLegAnimations(true);
         PlayLegAnimations();
         PlaySawAnimation();
         CloseThird.SetActive(false);
         ThirdOkay.SetActive(true);
         ThirdButton.SetActive(false);
         thirdCutted = true;
         CheckTrue();
     }
     else
     {
         WrongPlacePanel.SetActive(true);
     }
 }
示例#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);
        }
    }