示例#1
0
 void OnGUI()
 {
     if (m_form == null && GUI.Button(new Rect(5.0f, 5.0f, 105.0f, 25.0f), "Show Form"))
     {
         m_form = new Assets.Scripts.TestForm();
         m_form.Show();
     }
 }
示例#2
0
 void OnDestroy()
 {
     if (m_form != null)
     {
         m_form.Close();
         m_form = null;
     }
 }
示例#3
0
 void Update()
 {
     if (m_form != null && m_form.IsDisposed)
     {
         m_form = null;
     }
     if (m_form != null)
     {
         m_form.UpdateText();
     }
 }