public void ShowDialog()
 {
     ModalDialog.PopTo(transform.root.GetComponent <Canvas>().transform);
 }