Ejemplo n.º 1
0
 void onClick()
 {
     if (m_callback != null)
     {
         m_callback.Invoke(m_index);
     }
 }
Ejemplo n.º 2
0
    public void onClickYes()
    {
        string text = m_inputText.text;

        if (!string.IsNullOrEmpty(text))
        {
            if (m_callback != null)
            {
                m_callback.Invoke(text);
            }

            close();
        }
        else
        {
            MgrPanel.openDialog("please enter a text.");
        }
    }