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

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

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

            LoadMeshContainer(m);
        }