using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class AvatarSys : MonoBehaviour {
private GameObject girlTarget;//骨架物体,换装的人
private GameObject boyTarget;//骨架物体,换装的人
private void Start()
{
girlTarget = Instantiate(Resources.Load("FemaleTarget")) as GameObject;//生成骨架物体
boyTarget = Instantiate(Resources.Load("MaleTarget")) as GameObject;//生成骨架物体
boyTarget.AddComponent<SpinWithMouse>();//添加脚本
girlTarget.AddComponent<SpinWithMouse>();//添加脚本
}
}