示例#1
0
    void changePanel(iuPanel target)
    {
        StopScanning();
        panelLogin.gameObject.SetActive(false);
        panelScan.gameObject.SetActive(false);
        panelDebug.gameObject.SetActive(false);

        switch (target)
        {
        case iuPanel.Login:
            panelLogin.gameObject.SetActive(true);
            loginErrorTexts.gameObject.SetActive(false);
            break;

        case iuPanel.Scan:
            panelScan.gameObject.SetActive(true);

            stopScanButton.gameObject.SetActive(false);
            scanButton.gameObject.SetActive(true);
            checkImage.gameObject.SetActive(false);

            camImage.gameObject.SetActive(false);

            scanButton.gameObject.SetActive(true);
            break;

        case iuPanel.Debug:
            panelDebug.gameObject.SetActive(true);
            break;
        }

        actualPanel = target;
    }
示例#2
0
    public void debugPanelButton()
    {
        if (actualPanel == iuPanel.Login || actualPanel == iuPanel.Scan)
        {
            debugTextIU.text = "eventname: " + eventname + "\n" +
                               "tableconvidats: " + tableConvidats + "\n" +
                               "tableStands: " + tableStands + "\n" +
                               "standName: " + standName + "\n" +
                               //"servername: " + servername + "\n" +
                               //"username: "******"\n" +
                               //"password: "******"\n" +
                               //"dbname: " + dbname + "\n" +
                               "---------------------------------\n";
            debugTextIU.text += debugText;

            lastPanel = actualPanel;
            changePanel(iuPanel.Debug);
        }
        else
        {
            changePanel(lastPanel);
        }
    }