private void LoadResource() { var assetInfo = SingletonManager.Get <WeaponPartsConfigManager>().GetAsset(DestAttachmentId); if (AssetInfoIsEmpty(assetInfo)) { Logger.ErrorFormat("ErrorAttachmentId Try To Mount id: {0}", DestAttachmentId); return; } if (HaveCommitLoadAssetRequest(WeaponLoadAssetHandler, assetInfo)) { return; } WeaponLoadAssetHandler.SetInfo(assetInfo, DestAttachmentId); LoadRequestBatch.Add(LoadRequest(assetInfo, WeaponLoadAssetHandler)); }
private void LoadResource() { var weaponAvatarManager = SingletonManager.Get <WeaponAvatarConfigManager>(); var assetInfo = IsFirstPersonClass ? weaponAvatarManager.GetFirstPersonWeaponModel(DestWeaponId) : weaponAvatarManager.GetThirdPersonWeaponModel(DestWeaponId); if (AssetInfoIsEmpty(assetInfo)) { Logger.ErrorFormat("ErrorWeaponId Try To MountInPackage id: {0}", DestWeaponId); return; } if (HaveCommitLoadAssetRequest(WeaponLoadAssetHandler, assetInfo)) { return; } WeaponLoadAssetHandler.SetInfo(assetInfo, DestWeaponId); LoadRequestBatch.Add(LoadRequest(assetInfo, WeaponLoadAssetHandler)); }