void DelectScheme() { SchemeDataService.DelectScheme(m_currentSchemeData); //移除宏定义 EditorExpand.ChangeDefine(new string[] { }, new string[] { m_currentSchemeData.SchemeName }); m_currentSchemeData = null; m_currentSelectIndex = GetCurrentSelectIndex(); }
void DelectSchemeGUI() { if (GUILayout.Button("删除当前方案")) { if (EditorUtility.DisplayDialog("警告", "删除方案会删除对应的插件文件夹\n要继续吗?", "是", "取消")) { SchemeDataService.DelectScheme(m_currentSchemeData); m_currentSchemeData = null; m_currentSelectIndex = GetCurrentSelectIndex(); } } }