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); } }
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); } }