Пример #1
0
 void Deactivate(string Error)
 {
     Deactive = 1;
     errorText.SetActive(true);
     TEXTBOOK.SetActive(false);
     SANDBOX.SetActive(false);
     ErrorText.text = Error;
     MyShowToastMethod(Error);
     Debug.Log(Error);
 }
Пример #2
0
    void ActivateMenu()
    {
        int status = PlayerPrefs.GetInt("App_Activation");

        if (status != 1)
        {
            Deactivate("App has not been Activated");
        }
        else if (Deactive != 1)
        {
            Scene  currentScene = SceneManager.GetActiveScene();
            string sceneName    = currentScene.name;

            if (sceneName != "Menu")
            {
                SceneManager.LoadScene("Menu");
            }
            else
            {
                TEXTBOOK.SetActive(true);
                SANDBOX.SetActive(true);
            }
        }
    }