Esempio n. 1
0
 public void HideVisual() //외형, 옷 숨기기
 {
     HideAllObject(HairMale);
     HideAllObject(SuitMale);
     FaceMale_OBJ.SetActive(false);
     HideAllObject(HairFemale);
     HideAllObject(SuitFemale);
     FaceFemale_OBJ.SetActive(false);
 }
Esempio n. 2
0
    public void UpdateVisual() //외형, 옷 보이게 하기
    {
        HideVisual();
        //Show select obj
        if (Gender == "Male")
        {
            ShowIndex(HairMale, IndexHair.CurrentIndex);
            ShowIndex(SuitMale, IndexSuit.CurrentIndex);
            SetTextureToFace(FaceMale, IndexFace.CurrentIndex);
            FaceMale_OBJ.SetActive(true);
        }
        else if (Gender == "Female")
        {
            ShowIndex(HairFemale, IndexHair.CurrentIndex);
            ShowIndex(SuitFemale, IndexSuit.CurrentIndex);
            SetTextureToFace(FaceFemale, IndexFace.CurrentIndex);
            FaceFemale_OBJ.SetActive(true);
        }

        //Set Hair Color
        SetHairColor(HairColor, IndexColorHair.CurrentIndex);
    }