コード例 #1
0
 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]);
     }
 }
コード例 #2
0
 private void CopyFrom(PlayerWeaponBagSetComponent right)
 {
     right.Initialize();
     Initialize();
     WeaponBag.RewindTo(right.WeaponBag);
 }