Example #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]);
     }
 }
Example #2
0
 private bool IsApproximatelyEqual(PlayerWeaponBagSetComponent rightComponent)
 {
     if (WeaponBags[0] == null || (!WeaponBags[0].IsSimilar(rightComponent.WeaponBags[0])))
     {
         //builder.Append("Approxiamate diff :");
         //builder.Append("left:"+ WeaponBags[i]+"\n");
         //builder.Append("right:" + rightComponent.WeaponBags[i]+ "\n");
         //Logger.InfoFormat(builder.ToString());
         return(false);
     }
     ;
     return(true);
 }