public static ThirdButton PrepareButton(string text, MenuButton tag, bool reverseInvertAction = true) { ThirdButton btn = new ThirdButton(); btn.Text = text; btn.Tag = tag; btn.Size = new Size(150, 30); btn.AutoSize = true; btn.TextAlign = ContentAlignment.MiddleLeft; btn.ReverseInvertAction = reverseInvertAction; btn.UseCompatibleTextRendering = true; return(btn); }
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); } }