Ejemplo n.º 1
0
 public void Show(string content, UIMessageBoxEvent callback)
 {
     contentLabel.text = content;
     eventCallback     = callback;
 }
Ejemplo n.º 2
0
    public static void ShowMessageBox(string content, UIMessageBoxEvent callback)
    {
        GameObject messageBox = NGUITools.AddChild(PublicGameObject.publicGameObj, Resources.Load <GameObject>(PrefabPath));

        messageBox.GetComponent <UIMessageBox>().Show(content, callback);
    }