private void CopyFrom(PlayerWeaponBagSetComponent right) { right.Initialize(GlobalConst.WeaponBagMaxCount); Initialize(GlobalConst.WeaponBagMaxCount); for (int i = 0; i < GlobalConst.WeaponBagMaxCount; i++) { // DebugUtil.LogInUnity("left:{0} right:{1}", WeaponBags[i].ToString(), right.WeaponBags[i]); WeaponBags[i].RewindTo(right.WeaponBags[i]); } }
private void CopyFrom(PlayerWeaponBagSetComponent right) { right.Initialize(); Initialize(); WeaponBag.RewindTo(right.WeaponBag); }