public GameObject GetPart(bool wholeModel, string name) { if (wholeModel) { return(GetPartScript.GetPart(eyeSocketModel, name)); } else { return(GetPartScript.GetPart(eyeSocketHalfModel, name)); } }
private void PrepareElement(string partName) { GameObject q = GetPartScript.GetPart(modelObject, partName); Renderer rend = q.GetComponent <Renderer> (); startColor = rend.material.color; rend.material.color = changeColor; previousElement = q; previousColor = startColor; }
private void ActivateEyeCategory(EyeCategory eyeCategory) { switch (eyeCategory) { case EyeCategory.EYEBALL: foreach (var p in eyeElements.EyeballList) { GetPartScript.GetPart(modelObject, p.DescriptionFileName).SetActive(true); } break; case EyeCategory.MUSCLES: foreach (var p in eyeElements.MusclesList) { GetPartScript.GetPart(modelObject, p.DescriptionFileName).SetActive(true); } break; case EyeCategory.NERVES: foreach (var p in eyeElements.NervesList) { GetPartScript.GetPart(modelObject, p.DescriptionFileName).SetActive(true); } break; case EyeCategory.EYESOCKET: foreach (var p in eyeElements.EyeSocketList) { GetPartScript.GetPart(modelObject, p.DescriptionFileName).SetActive(true); } break; default: break; } }
public GameObject GetDisorderModel(string name) { return(GetPartScript.GetPart(models, name)); }