// 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); }
// 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); }