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