private static void OnPropertyDlgClose(object dialog) { m_parentTemplate = null; AMM_AddPropertyDialog dlg = dialog as AMM_AddPropertyDialog; dlg.onAddClick -= OnAddPropertyClick; dlg.onClose -= OnValueDlgClose; }
public static void AddPropertyDialog(AMM_BaseTemplate parent) { m_parentTemplate = parent; AMM_AddPropertyDialog dialog = EditorWindow.CreateInstance <AMM_AddPropertyDialog>(); dialog.onAddClick += OnAddPropertyClick; dialog.onClose += OnPropertyDlgClose; dialog.titleContent.text = "Add Property"; dialog.ShowAuxWindow(); }