Exemplo n.º 1
0
    // Use this for initialization
    void Start()
    {
        GameObject obj = GameObject.Find("TestPanel");
        if(obj != null)
            m_testPanel = obj.GetComponent<UITestPanel>();
        obj = GameObject.Find("TitlePanel");
        if (obj != null)
            m_titlePanel = obj.GetComponent<UITitlePanel>();

        ShowTestPanel(false);
    }
Exemplo n.º 2
0
    // Use this for initialization
    void Start()
    {
        GameObject obj = GameObject.Find("TestPanel");

        if (obj != null)
        {
            m_testPanel = obj.GetComponent <UITestPanel>();
        }
        obj = GameObject.Find("TitlePanel");
        if (obj != null)
        {
            m_titlePanel = obj.GetComponent <UITitlePanel>();
        }

        ShowTestPanel(false);
    }