public void Show(string content, UIMessageBoxEvent callback) { contentLabel.text = content; eventCallback = callback; }
public static void ShowMessageBox(string content, UIMessageBoxEvent callback) { GameObject messageBox = NGUITools.AddChild(PublicGameObject.publicGameObj, Resources.Load <GameObject>(PrefabPath)); messageBox.GetComponent <UIMessageBox>().Show(content, callback); }