void OnGetCloth(string id, CommonEnum.PartType part) { var tableitem = ItemConfig.GetConfigByID(id); this.GetItemName.text = tableitem.Name; Sprite icon = Resources.Load <Sprite>(tableitem.Icon); ItemIcon.sprite = icon; GetItemTipAnim.Play("getItemTipIn"); }
void OnGetCloth(string id, CommonEnum.PartType part) { this.bodyParts[part] = id; if (this.bodyParts[CommonEnum.PartType.body] != "000") { AchievementManager.GetAchievement("003"); } if (this.bodyParts[CommonEnum.PartType.leg] != "000") { this.IsNaked = false; } string path = this.GetModelPathByBodyParts(); StartCoroutine(WaitForChangeCloth(path)); }