Beispiel #1
0
    public void ClosePanel()
    {
        if (Panel != null)
        {
            f = GameObject.FindGameObjectWithTag("Letter1").GetComponent <force>();

            f.setPaused(false);
            Panel.SetActive(false);
        }
    }
Beispiel #2
0
    public void OpenPanelInit(String hint1)
    {
        if (Panel != null)
        {
            f = GameObject.FindGameObjectWithTag("Letter1").GetComponent <force>();

            f.setPaused(true);

            Panel.SetActive(true);
            txt = GameObject.FindWithTag("Hint_Text").GetComponent <Text>() as Text;
            //txt1 = GameObject.FindWithTag("Category_Text").GetComponent<Text>() as Text;
            //txt = gameObject.GetComponent<Text>();
            if (f != null && txt != null)
            {
                // Debug.Log(f.getHint());
                txt.text = hint1;
                //txt1.text = f.getCat().ToUpper();
            }
        }
    }