예제 #1
0
    static void CreateStateEditor()
    {
        if (mInstance != null)
        {
            mInstance.Close();
            mInstance = null;
            return;
        }
        mInstance = EditorWindow.GetWindow <StateEditor>(true, "状态编辑器");
        mInstance.Show();

        if (excel_state_group.excelView == null)
        {
            ExcelLoader.LoadSingleExcel("state_group");
        }
        if (excel_state_effect.excelView == null)
        {
            ExcelLoader.LoadSingleExcel("state_effect");
        }
    }