Exemple #1
0
    // Use this for initialization
    void Start()
    {
        sqlite = GetComponent <SQLiteFunctionality>();
        sqlite.OnStart();

        menu.gameObject.SetActive(true);
        passChange.gameObject.SetActive(false);
    }
    // Use this for initialization
    void Start()
    {
        Debug.Log(Application.persistentDataPath);
        sqlite = GetComponent <SQLiteFunctionality>();
        sqlite.OnStart();

        listView.gameObject.SetActive(true);
        itemView.gameObject.SetActive(false);
        changePass.gameObject.SetActive(false);
        newItem.gameObject.SetActive(false);
        messageBox.gameObject.SetActive(false);

        FillList();
    }
    void Start()
    {
        sqlite = GetComponent <SQLiteFunctionality>();
        sqlite.OnStart();
        warning.gameObject.SetActive(false);

        // Check if account exists
        if (sqlite.GetRowCount() > 0)
        {
            // Database has content
            login.gameObject.SetActive(true);
            signup.gameObject.SetActive(false);
        }
        else
        {
            // Database has no content
            login.gameObject.SetActive(false);
            signup.gameObject.SetActive(true);
        }

        coverToggle.onValueChanged.AddListener(delegate { ToggleClicked(); });
    }