Exemple #1
0
    internal void EquipmentChange(string name, int index, Transform trans)
    {
        Debug.Log("  name = " + name + "     index = " + index);
        switch (name)
        {
        case "Head":
            _configs[1] = "head_" + index;
            break;

        case "Chest":
            _configs[2] = "chest_" + index;
            break;

        case "Hand":
            _configs[3] = "hand_" + index;
            break;

        case "Feet":
            _configs[4] = "feet_" + index;
            break;

        case "Weapon":
            _configs[5] = "weapon_" + index;
            break;
        }

        CharacterMgr.ChangeSkin(_characterInst, _configs, true);

        Transform transText = trans.Find("Text");
        Text      text      = transText.GetComponent <Text>();

        text.text = "√";
    }