public GameObject GetPart(bool wholeModel, string name)
 {
     if (wholeModel)
     {
         return(GetPartScript.GetPart(eyeSocketModel, name));
     }
     else
     {
         return(GetPartScript.GetPart(eyeSocketHalfModel, name));
     }
 }
Example #2
0
        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;
        }
Example #3
0
        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;
            }
        }
Example #4
0
 public GameObject GetDisorderModel(string name)
 {
     return(GetPartScript.GetPart(models, name));
 }