/// <summary> /// 卸载武器 /// </summary> /// <param name="pos"></param> public void UnEquipWeapon(int pos) { Destroy(weaponDataList[pos].gameObject); WeaponItem fist = (WeaponItem)WeaponItem.GetItem(ItemEnum.Fist); Weapons[pos] = fist; GameObject fistObject = Instantiate <GameObject>(fist.model, transform); fistObject.transform.SetSiblingIndex(pos); weaponDataList[pos] = fistObject.GetComponent <WeaponData>(); }