예제 #1
0
        /// <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);
        }
예제 #2
0
        /// <summary>
        /// 加载碰撞模型
        /// </summary>
        static public ResRef LoadMeshCollider(ResDescColliderMesh desc)
        {
            var url = PathToUrl(desc.name, ResType.Mesh);

            return(LoadResByUrl <ResMesh>(url, desc.name, null, desc));
        }