Пример #1
0
 public void OnPause()
 {
     WarningPanel.SetActive(false);
     pausePanel.SetActive(true);
     pauseButton.SetActive(false);
     Time.timeScale = 0;
 }
Пример #2
0
 public void ConvertFirst()
 {
     if (FirstPartInput.text == "40")
     {
         StartCoroutine(FirstPartCoroutine());
         firstConverted = true;
     }
     else
     {
         ConverterPanel.SetActive(false);
         WarningPanel.SetActive(true);
     }
 }
Пример #3
0
 public void ConvertSecond()
 {
     if (!firstConverted)
     {
         ConverterPanel.SetActive(false);
         OrderWarningPanel.SetActive(true);
     }
     else if (SecondPartInput.text != "5")
     {
         ConverterPanel.SetActive(false);
         WarningPanel.SetActive(true);
     }
     else
     {
         StartCoroutine(ConvertSecondCoroutine());
         secondConverted = true;
     }
 }
Пример #4
0
 public void BacktoMainMenu()
 {
     pausePanel.SetActive(false);
     WarningPanel.SetActive(true);
 }