public void SubmitForm()
    {
        RoomName = GameObject.Find("Canvas/Panel/Text").GetComponent <Text> ().text;
        foreach (GameObject Reservetoggle in toggles)
        {
            Toggle m_Toggle = Reservetoggle.GetComponent <Toggle>();
            ReservationTime  = m_Toggle.name.Substring(1, 2);
            ReservationTime += ":00:00";
            if (m_Toggle.isOn)
            {
                //Debug.Log ("Reserve" + m_Toggle.name);
                ReservationStatus = "true";
            }
            else
            {
                //Debug.Log ("Not reserve" + m_Toggle.name);
                ReservationStatus = "false";
            }
            StartCoroutine("PostForm");
        }
        PopUpPanel = GameObject.Find("Canvas/PopUpPanel");
        PopUpPanel.transform.localScale      = new Vector3(0, 0, 0);
        EmptyGameObject.transform.localScale = new Vector3(1, 1, 1);
        GameObject Camera    = GameObject.Find("ARCamera");
        ARCamera   TakePhoto = (ARCamera)Camera.GetComponent(typeof(ARCamera));

        TakePhoto.OnStartClick();
    }
Exemplo n.º 2
0
    public void StartLocalization()
    {
        GameObject Camera    = GameObject.Find("ARCamera");
        ARCamera   TakePhoto = (ARCamera)Camera.GetComponent(typeof(ARCamera));

        TakePhoto.OnStartClick();
    }