public MeshContainer GetMesh(string id) { MeshContainer retVal = null; int index = -1; if (meshDictionaries.TryGetValue(id, out index)) { retVal = meshContainers[index]; } return(retVal); }
public void LoadMeshContainer(MeshContainer m) { bodyRenderer.sharedMesh = (isFemale)? m.f_Mesh : m.m_Mesh; bodyRenderer.material = m.material; }
public void LoadCharacter(ResourcesManager r) { MeshContainer m = r.GetMesh(outfitId); LoadMeshContainer(m); }