/// <summary> /// Clone /// </summary> /// <param name="cloned"></param> /// <returns></returns> public IResDesc Clone(GameObject cloned) { var d = new ResDescColliderMesh { name = name, collider = cloned.GetComponent <MeshCollider>() }; return(d); }
/// <summary> /// 加载碰撞模型 /// </summary> static public ResRef LoadMeshCollider(ResDescColliderMesh desc) { var url = PathToUrl(desc.name, ResType.Mesh); return(LoadResByUrl <ResMesh>(url, desc.name, null, desc)); }