示例#1
0
        public MeshContainer GetMesh(string id)
        {
            MeshContainer retVal = null;
            int           index  = -1;

            if (meshDictionaries.TryGetValue(id, out index))
            {
                retVal = meshContainers[index];
            }

            return(retVal);
        }
示例#2
0
 public void LoadMeshContainer(MeshContainer m)
 {
     bodyRenderer.sharedMesh = (isFemale)? m.f_Mesh : m.m_Mesh;
     bodyRenderer.material   = m.material;
 }
示例#3
0
        public void LoadCharacter(ResourcesManager r)
        {
            MeshContainer m = r.GetMesh(outfitId);

            LoadMeshContainer(m);
        }