using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class AvatarSystem : MonoBehaviour
{
public GameObject targetPlayer;
public GameObject templatePlayer;
public Transform targetTrans;
public Transform templateTrans;
//保存部位名称,编号和部位位置信息
public Dictionary<string, Dictionary<string, Transform>> data = new Dictionary<string, Dictionary<string, Transform>>();
//保存带有蒙皮渲染组件的部位名称和对应的蒙皮网格渲染组件
public Dictionary<string, SkinnedMeshRenderer> partSMR = new Dictionary<string, SkinnedMeshRenderer>();
//目标骨骼位置信息
public Transform[] targetBones;
//换装
public string[,] avatarstr1 = new string[,] { { "coat", "001" }, { "hair", "001" }, { "pant", "001" }, { "hand", "003" }, {