예제 #1
0
        private static void OnPropertyDlgClose(object dialog)
        {
            m_parentTemplate = null;

            AMM_AddPropertyDialog dlg = dialog as AMM_AddPropertyDialog;

            dlg.onAddClick -= OnAddPropertyClick;
            dlg.onClose    -= OnValueDlgClose;
        }
예제 #2
0
        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();
        }