Пример #1
0
    void OpenMainPage()
    {
        HomePage.Hide(false);
        HomePage.gameObject.SetActive(false);
        SignUpPage.Hide(false);
        SignInPage.Hide(false);


        //if (user.Email!="")
        //	UserEmail = user.Email;
        //else
        if (user.UserId != "")
        {
            UserEmail = user.UserId;
        }

        //WriteEditorData ();

        //DebugLog (UserEmail+"ID");
        //DisplayInfo ();
        if (!isDataEntry)
        {
            MainPage.gameObject.SetActive(true);
            MainPage.Show(false);
            GetComponent <DataBaseManager> ().ReadDataBase();
        }
        else
        {
            DataEntryPage.gameObject.SetActive(true);
            DataEntryPage.Show(false);
            GetComponent <DatabaseEntry> ().GetDatabaseEntry();
        }
        //_DisplayInfo.OnEnable ();
    }