Ejemplo n.º 1
0
 public static void CopyToWeaponComponentWithDefaultParts(this WeaponInfo weaponInfo, WeaponComponent weaponComponnet)
 {
     if (weaponComponnet != null)
     {
         weaponInfo.ToPlayerWeaponComponent(weaponComponnet);
         var attach = GetParts(weaponInfo);
         attach = attach.ApplyDefaultParts(weaponInfo.Id);
         weaponComponnet.ApplyParts(attach);
     }
     else
     {
         Logger.Error("weaponComponent to copy to is null");
     }
 }