Beispiel #1
0
        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);
        }
Beispiel #2
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);
     }
 }
Beispiel #3
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);
        }
    }