static void CreateInfo() { // 生成SkillInfo实例 RoleSystemInfo info = ScriptableObject.CreateInstance <RoleSystemInfo>(); // 创建文件 AssetDatabase.CreateAsset(info, RoleSystemInfo.RoleInfoPath); // 自动选中文件 Selection.activeObject = info; }
public override void Start() { //读取RoleInfo RoleInfo = AssetDatabase.LoadAssetAtPath <RoleSystemInfo>(RoleSystemInfo.RoleInfoPath); //注册角色载具移动代理者 RegisterProxy(new RoleVechicleMoveProxy_city()); //注册角色Upda处理器代理者 RegisterProxy(new RoleUpdateProcessProxy()); }