Ejemplo n.º 1
0
    void Start()
    {
        progressPanel.onCancelHandler = () => {
            configLoader.Cancel();
            progressPanel.Hide();
        };
        phone   = infoPanel.GetChildByName("Phone").GetComponent <Text> ();
        email   = infoPanel.GetChildByName("Email").GetComponent <Text> ();
        website = infoPanel.GetChildByName("Website").GetComponent <Text> ();
        string txtPhone   = I18n.Translate("select_phone");
        string txtEmail   = I18n.Translate("select_email");
        string txtWebsite = I18n.Translate("select_website");

        if (!string.IsNullOrEmpty(txtPhone))
        {
            phone.text = txtPhone;
        }
        if (!string.IsNullOrEmpty(txtEmail))
        {
            email.text = txtEmail;
        }
        if (!string.IsNullOrEmpty(txtWebsite))
        {
            website.text = txtWebsite;
        }
        GameObject version = infoPanel.GetChildByName("Version");

        if (version != null)
        {
            version.GetComponent <Text> ().text = "v" + Director.version.ToString();
        }
        StartCoroutine(initScene());
    }
Ejemplo n.º 2
0
    void Start()
    {
        ARCamera     = GameObject.Find("ARCamera").GetComponentInChildren <Camera>(true);
        normalCamera = GameObject.Find("Camera").GetComponent <Camera>();
//		Debug.Log ("Start");
        contactUs.text = I18n.Translate("select_cooperate");
        email.text     = I18n.Translate("select_email");
        phone.text     = I18n.Translate("select_phone");
        selectionItems = new List <GameObject> ();
        progressPanel.onCancelHandler = () => {
            configLoader.Cancel();
            progressPanel.Hide();
        };
        for (int i = 0; i < tabButtons.Count; i++)
        {
            GameObject button = tabButtons [i];
            Button     btn    = button.GetComponentInChildren <Button> () as Button;
            btn.onClick.AddListener(delegate {
                OnTabClicked(button);
            });
            Text txt = button.GetComponentInChildren <Text> () as Text;
            txt.text = I18n.Translate("select_tab" + i);
        }
        OnTabClicked(tabButtons[0]);
        StartCoroutine(initScene());
    }
Ejemplo n.º 3
0
    void Start()
    {
//		Debug.Log ("Start");
        selectionItems = new List <GameObject> ();
        progressPanel.onCancelHandler = () => {
            Config.forceBreak = true;
            progressPanel.Hide();
        };
        StartCoroutine(initScene());
    }