创建前目录结构: 创建后的目录结构: using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEditor; using System.IO; using System.Text; public class BuildTool { [MenuItem("BuildTool/RefreshCloth/RefreshSelectClothConfig")] stati
为了可扩展性,方便以后对于代码的修改维护,使用动态创建DAL层对象. 1.首先在webconfig中的configuration下添加配置项 <appSettings> <add key="IStuDAL" value="StuDAL.StudentDAL"/> </appSettings> 2.在工厂中创建实例 namespace DALFactory { public class DALHelper { public stat