public String Information() { return(ToString() + "\n-------------------------" + "\nHelmet: " + (Helmet == null ? "none" : Helmet.ToString()) + "\nChestplate: " + (Chestplate == null ? "none" : Chestplate.ToString()) + "\nLeggings: " + (Leggins == null ? "none" : Leggins.ToString()) + "\nRightHand: " + (RightHand == null ? "none" : RightHand.ToString()) + "\nLeftHand: " + (LeftHand == null ? "none" : LeftHand.ToString())); }
public void CharacterSetChange(Face face, HandL handL, HandR handR, Helmet helmet, Mask mask, Dress dress, ShoesAll shoes) { //Debug.Log("옷 갈아입기 실행"); string faceName = face.ToString(); for (int i = 0; i < gFace.Length; i++) { if (faceName == gFace[i].name) { gFace[i].SetActive(true); } else { gFace[i].SetActive(false); } } string handLName = handL.ToString(); for (int i = 0; i < gHandL.Length; i++) { if (handLName == gHandL[i].name) { gHandL[i].SetActive(true); } else { gHandL[i].SetActive(false); } } string handRName = handR.ToString(); for (int i = 0; i < gHandR.Length; i++) { if (handRName == gHandR[i].name) { gHandR[i].SetActive(true); } else { gHandR[i].SetActive(false); } } string helmetName = helmet.ToString(); for (int i = 0; i < gHelmet.Length; i++) { if (helmetName == gHelmet[i].name) { gHelmet[i].SetActive(true); } else { gHelmet[i].SetActive(false); } } string maskName = mask.ToString(); for (int i = 0; i < gMask.Length; i++) { if (maskName == gMask[i].name) { gMask[i].SetActive(true); } else { gMask[i].SetActive(false); } } string dressName = dress.ToString(); for (int i = 0; i < gDress.Length; i++) { if (dressName == gDress[i].name) { gDress[i].SetActive(true); } else { gDress[i].SetActive(false); } } string shoesName = shoes.ToString(); for (int i = 0; i < gShoes.Length; i++) { if (shoesName == gShoes[i].name) { gShoes[i].SetActive(true); } else { gShoes[i].SetActive(false); } } }