赞
踩
- 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>();//添加脚本
-
- }
-
- }
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。