附上换装代码。 #pragma strict public var O_body_r:GameObject; public var O_hand_L_r:GameObject; public var O_hand_R_r:GameObject; public var O_helmet_r:GameObject; public var O_calf_L_r:GameObject; public var O_calf_R_r:GameObject; public var O_weapon_R_r:GameObject;
public var body1_r:GameObject;
private var mBody:GameObject;
private var mHand_L:GameObject; private var mHand_L_P:Transform;
private var mHand_R:GameObject; private var mHand_R_P:Transform;
private var mHelmet:GameObject; private var mHelmet_P:Transform;
private var mCalf_L:GameObject; private var mCalf_L_P:Transform;
private var mCalf_R:GameObject; private var mCalf_R_P:Transform;
private var mWeapon_R:GameObject; private var mWeapon_R_P:Transform;
function Start () {
}
private var ifIs:boolean=true; function Update () {