商店物品添加特效

dev_chengFeng
jiaoyangna 2021-06-30 18:12:24 +08:00
parent 9d11a48f70
commit 3fadc63852
18 changed files with 5367 additions and 10 deletions

View File

@ -0,0 +1,106 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 6
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: star 3
m_Shader: {fileID: 4800000, guid: 4acbea0382cd6854ca0fbf80a29dd0b6, type: 3}
m_ShaderKeywords: _CA_SOFTPARTICLES_OFF
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _BumpMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailAlbedoMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailMask:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailNormalMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _EmissionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _Grain:
m_Texture: {fileID: 2800000, guid: 4ac582119a95920408cce78c37350e35, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
m_Texture: {fileID: 10300, guid: 0000000000000000f000000000000000, type: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _Main_Tex:
m_Texture: {fileID: 2800000, guid: c27c3fa5087c54a4daede54cdcd766a9, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _Mask:
m_Texture: {fileID: 2800000, guid: 579d7a890dd5d9346994e0f97c6a56bf, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MaskTex:
m_Texture: {fileID: 2800000, guid: 579d7a890dd5d9346994e0f97c6a56bf, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MetallicGlossMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _OcclusionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _ParallaxMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Floats:
- _BumpScale: 1
- _CA_SoftParticles: 0
- _Cutoff: 0.5
- _DetailNormalMapScale: 1
- _DstBlend: 0
- _GlossMapScale: 1
- _Glossiness: 0.5
- _GlossyReflections: 1
- _Grain_U_Speed: 5
- _Grain_V_Speed: 5
- _InvFade: 5
- _Metallic: 0
- _Mode: 0
- _OcclusionStrength: 1
- _Parallax: 0.02
- _Rotator: 0
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
- _UVSec: 0
- _U_Speed: 0.5
- _V_Speed: 0
- _ZWrite: 1
m_Colors:
- _Center: {r: 0, g: 0, b: 0, a: 1}
- _Color: {r: 16, g: 16, b: 1.4431373, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
- _Grain_Color: {r: 1, g: 1, b: 1, a: 1}
- _Main_Color: {r: 1, g: 1, b: 1, a: 1}
- _Normal: {r: 0, g: 0, b: 1, a: 0}
- _Scale: {r: 1, g: 1, b: 1, a: 1}
- _TintColor: {r: 1, g: 0.8709767, b: 0.5613208, a: 1}

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 68668a5b8d8097345b0dded8411c1ff7
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 2100000
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: df309b53ac1c2564ab3a0ef2ec39f3ab
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 3b63873a18fc3b943b348bc2235d0535
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: a05897d7661f3c74b8eef374b02d6fd5
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 62a0a025cd2db4c49867f3211b3bff63
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

View File

@ -0,0 +1,110 @@
fileFormatVersion: 2
guid: c27c3fa5087c54a4daede54cdcd766a9
TextureImporter:
fileIDToRecycleName: {}
externalObjects: {}
serializedVersion: 9
mipmaps:
mipMapMode: 0
enableMipMap: 0
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: -1
aniso: -1
mipBias: -100
wrapU: 1
wrapV: 1
wrapW: 1
nPOTScale: 0
lightmap: 0
compressionQuality: 50
spriteMode: 1
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 1
spriteTessellationDetail: -1
textureType: 0
textureShape: 1
singleChannelComponent: 0
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
platformSettings:
- serializedVersion: 2
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
- serializedVersion: 2
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
- serializedVersion: 2
buildTarget: Android
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID: 62f0ed81a134c1847bd73599ab57e000
vertices: []
indices:
edges: []
weights: []
spritePackingTag:
pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

View File

@ -0,0 +1,99 @@
fileFormatVersion: 2
guid: 579d7a890dd5d9346994e0f97c6a56bf
TextureImporter:
fileIDToRecycleName: {}
externalObjects: {}
serializedVersion: 9
mipmaps:
mipMapMode: 0
enableMipMap: 1
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: -1
aniso: -1
mipBias: -100
wrapU: 1
wrapV: 1
wrapW: 1
nPOTScale: 0
lightmap: 0
compressionQuality: 50
spriteMode: 1
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 2
alphaIsTransparency: 0
spriteTessellationDetail: -1
textureType: 0
textureShape: 1
singleChannelComponent: 0
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
platformSettings:
- serializedVersion: 2
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
- serializedVersion: 2
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID: dc2dd3caf7781c04ca392103bdbff243
vertices: []
indices:
edges: []
weights: []
spritePackingTag:
pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0
userData:
assetBundleName:
assetBundleVariant:

View File

@ -851,6 +851,7 @@ RectTransform:
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 4300363014719737227}
- {fileID: 4724784087974829125}
m_Father: {fileID: 224014376810088690}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
@ -1687,7 +1688,7 @@ GameObject:
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
m_IsActive: 0
--- !u!224 &224496811525665260
RectTransform:
m_ObjectHideFlags: 0
@ -5614,3 +5615,128 @@ MonoBehaviour:
m_FillClockwise: 1
m_FillOrigin: 0
m_UseSpriteMesh: 0
--- !u!1001 &3760684127837706559
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 224172487803996794}
m_Modifications:
- target: {fileID: 4783450434873703167, guid: a05897d7661f3c74b8eef374b02d6fd5,
type: 3}
propertyPath: m_Name
value: Fx_SquareFlow
objectReference: {fileID: 0}
- target: {fileID: 8476175074273985914, guid: a05897d7661f3c74b8eef374b02d6fd5,
type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8476175074273985914, guid: a05897d7661f3c74b8eef374b02d6fd5,
type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8476175074273985914, guid: a05897d7661f3c74b8eef374b02d6fd5,
type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8476175074273985914, guid: a05897d7661f3c74b8eef374b02d6fd5,
type: 3}
propertyPath: m_LocalRotation.x
value: -0
objectReference: {fileID: 0}
- target: {fileID: 8476175074273985914, guid: a05897d7661f3c74b8eef374b02d6fd5,
type: 3}
propertyPath: m_LocalRotation.y
value: -0
objectReference: {fileID: 0}
- target: {fileID: 8476175074273985914, guid: a05897d7661f3c74b8eef374b02d6fd5,
type: 3}
propertyPath: m_LocalRotation.z
value: -0
objectReference: {fileID: 0}
- target: {fileID: 8476175074273985914, guid: a05897d7661f3c74b8eef374b02d6fd5,
type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 8476175074273985914, guid: a05897d7661f3c74b8eef374b02d6fd5,
type: 3}
propertyPath: m_RootOrder
value: 1
objectReference: {fileID: 0}
- target: {fileID: 8476175074273985914, guid: a05897d7661f3c74b8eef374b02d6fd5,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8476175074273985914, guid: a05897d7661f3c74b8eef374b02d6fd5,
type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8476175074273985914, guid: a05897d7661f3c74b8eef374b02d6fd5,
type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8476175074273985914, guid: a05897d7661f3c74b8eef374b02d6fd5,
type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8476175074273985914, guid: a05897d7661f3c74b8eef374b02d6fd5,
type: 3}
propertyPath: m_AnchoredPosition.y
value: 35
objectReference: {fileID: 0}
- target: {fileID: 8476175074273985914, guid: a05897d7661f3c74b8eef374b02d6fd5,
type: 3}
propertyPath: m_SizeDelta.x
value: 100
objectReference: {fileID: 0}
- target: {fileID: 8476175074273985914, guid: a05897d7661f3c74b8eef374b02d6fd5,
type: 3}
propertyPath: m_SizeDelta.y
value: 100
objectReference: {fileID: 0}
- target: {fileID: 8476175074273985914, guid: a05897d7661f3c74b8eef374b02d6fd5,
type: 3}
propertyPath: m_AnchorMin.x
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 8476175074273985914, guid: a05897d7661f3c74b8eef374b02d6fd5,
type: 3}
propertyPath: m_AnchorMin.y
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 8476175074273985914, guid: a05897d7661f3c74b8eef374b02d6fd5,
type: 3}
propertyPath: m_AnchorMax.x
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 8476175074273985914, guid: a05897d7661f3c74b8eef374b02d6fd5,
type: 3}
propertyPath: m_AnchorMax.y
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 8476175074273985914, guid: a05897d7661f3c74b8eef374b02d6fd5,
type: 3}
propertyPath: m_Pivot.x
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 8476175074273985914, guid: a05897d7661f3c74b8eef374b02d6fd5,
type: 3}
propertyPath: m_Pivot.y
value: 0.5
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: a05897d7661f3c74b8eef374b02d6fd5, type: 3}
--- !u!224 &4724784087974829125 stripped
RectTransform:
m_CorrespondingSourceObject: {fileID: 8476175074273985914, guid: a05897d7661f3c74b8eef374b02d6fd5,
type: 3}
m_PrefabInstance: {fileID: 3760684127837706559}
m_PrefabAsset: {fileID: 0}

View File

@ -31,6 +31,7 @@ function ActivityMainPanel:BindEvent()
-- 关闭界面打开主城
Util.AddClick(this.btnBack, function()
ShopManager.SetSelectIndex(0,{})
DynamicActivityManager.RemoveUIList()
if #DynamicActivityManager.OpenUIList > 0 then
-- LogRed("jump ")

View File

@ -96,6 +96,8 @@ function MainShopPanel:BindEvent()
Util.AddClick(this.vipDetailBtn, function ()
UIManager.OpenPanel(UIName.VipPanelV2)
end)
ShopManager.SetSelectIndex(0,{})
end
--添加事件监听(用于子类重写)

View File

@ -12,6 +12,18 @@ this._CountDownTimer = nil
this._IsRefresh = 0
this._RefreshShopList = {}
this.selectIndex = {shopType = 0,storeId = {}} --跳转到哪个位置
this.selectIndex2 = {shopType = 0,storeId = {}} --哪个位置需要显示特效
function this.SetSelectIndex(shopType,storeId,b)
this.selectIndex.shopType = shopType
this.selectIndex.storeId = storeId
if b and b == 1 then
else
this.selectIndex2.shopType = shopType
this.selectIndex2.storeId = storeId
end
end
function this.Initialize()
if not this._CountDownTimer then
this._CountDownTimer = Timer.New(this.TimeUpdate, 1, -1, true)

View File

@ -76,6 +76,7 @@ function JumpViewNew:OnOpen(jumpId,heroConfig,parent)
self.info.text = self.info.text.."(需刷新)"
end
local storeTypeConfig = ConfigManager.GetConfigDataByKey(ConfigName.StoreTypeConfig,"StoreType",self.jumpSData.Skipfactor[1])
self.shopType = storeTypeConfig.Id
local configs = ConfigManager.GetAllConfigsDataByKey(ConfigName.StoreConfig,"StoreId",storeTypeConfig.Id)
local getChipNum = 1
local costItemId = 0
@ -83,6 +84,7 @@ function JumpViewNew:OnOpen(jumpId,heroConfig,parent)
local rate = 0
for i = 1,#configs do
if self.needChipId == configs[i].Goods[1][1] then
self.ShopId = configs[i].Id
getChipNum = configs[i].Goods[1][2]
costItemId = configs[i].Cost[1][1]
local a,b,c,d = configs[i].Cost[2][1],configs[i].Cost[2][2],configs[i].Cost[2][3],configs[i].Cost[2][4]
@ -108,12 +110,14 @@ function JumpViewNew:OnOpen(jumpId,heroConfig,parent)
self.desc.text = string.format("<color=#%s>%s:%s/%s</color>",color, ItemConfig[costItemId].Name,itemcount,needCostNum)
elseif self.jumpSData.Type == JumpType.XingChenShangDian then
local storeTypeConfig = ConfigManager.GetConfigDataByKey(ConfigName.StoreTypeConfig,"StoreType",70)
self.shopType = storeTypeConfig.Id
local configs = ConfigManager.GetAllConfigsDataByKey(ConfigName.StoreConfig,"StoreId",storeTypeConfig.Id)
local getChipNum = 1
local costItemId = 0
local costItemNum = 0
for i = 1,#configs do
if self.needChipId == configs[i].Goods[1][1] then
self.ShopId = configs[i].Id
getChipNum = configs[i].Goods[1][2]
costItemId = configs[i].Cost[1][1]
local a,b,c,d = configs[i].Cost[2][1],configs[i].Cost[2][2],configs[i].Cost[2][3],configs[i].Cost[2][4]
@ -185,8 +189,12 @@ function JumpViewNew:GoToJumpData()
PopupTipPanel.ShowTip("碎片不足!")
end
else
JumpManager.GoJump(self.jumpSData.Id)
self.parent:ClosePanel()
if self.jumpSData.Type == JumpType.Store then
ShopManager.SetSelectIndex(self.jumpSData.Skipfactor[1],{self.ShopId})
end
JumpManager.GoJump(self.jumpSData.Id,function()
self.parent:ClosePanel()
end)
end
end

View File

@ -416,16 +416,33 @@ function this:RefreshItemList(isRefresh,isTop,isAni)
shopItem.gameObject:SetActive(true)
end
end, not isTop,not isAni)
-- if isPlayShow then
-- -- SecTorPlayAnimByScroll(self.ScrollView, 0.03)
-- isPlayShow = false
-- end
local curindex = 0
for i = 1 ,#itemlist do
if self.ShopType == ShopManager.selectIndex.shopType then
for j = 1 , #ShopManager.selectIndex.storeId do
if itemlist[i].id == ShopManager.selectIndex.storeId[j] then
ShopManager.SetSelectIndex(0,{},1)
curindex = i
break
end
end
end
if curindex ~= 0 then
break
end
end
if curindex ~= 0 then
self.ScrollView:SetIndex(curindex)
end
end
end
-- 商店物品数据匹配
function this:ShopItemAdapter(shopItem, itemData)
-- 获取对象
local effect = Util.GetGameObject(shopItem, "Fx_SquareFlow")
effect.gameObject:SetActive(false)
Util.SetParticleSortLayer(effect, this.sortingOrder + 1)
local bg = Util.GetGameObject(shopItem, "GameObject/bg")
local item = Util.GetGameObject(bg, "item")
local itemName = Util.GetGameObject(bg, "itemName"):GetComponent("Text")
@ -509,8 +526,18 @@ function this:ShopItemAdapter(shopItem, itemData)
SetAlpha(itemName, textA)
--SetAlpha(limitTip, textA)
SetAlpha(itemPrice, textA)
local isshow = false
if self.ShopType == ShopManager.selectIndex2.shopType then
for j = 1 , #ShopManager.selectIndex2.storeId do
if itemData.id == ShopManager.selectIndex2.storeId[j] then
isshow = true
break
end
end
end
if isshow then
effect.gameObject:SetActive(true)
end
-- 购买事件
Util.AddOnceClick(lock, function()

View File

@ -390,11 +390,33 @@ function ShopViewNew:RefreshItemList(isTop)
local itemData = itemlist[index]
self:ShopItemAdapter(shopItem, itemData)
end, not isTop)
local curindex = 0
for i = 1 ,#itemlist do
if self.ShopType == ShopManager.selectIndex.shopType then
for j = 1 , #ShopManager.selectIndex.storeId do
if itemlist[i].id == ShopManager.selectIndex.storeId[j] then
ShopManager.SetSelectIndex(0,{},1)
curindex = i
break
end
end
end
if curindex ~= 0 then
break
end
end
if curindex ~= 0 then
self.ScrollView:SetIndex(curindex)
end
end
end
-- 妖晶商店物品数据匹配
function ShopViewNew:RechargeShopItemAdapter(shopItem, itemData)
-- 获取对象
local effect = Util.GetGameObject(shopItem, "Fx_SquareFlow")
effect.gameObject:SetActive(false)
Util.SetParticleSortLayer(effect, this.sortingOrder + 1)
-- 获取对象
local first = Util.GetGameObject(shopItem, "first")
local firstNum = Util.GetGameObject(shopItem, "first/Text"):GetComponent("Text")
@ -412,7 +434,18 @@ function ShopViewNew:RechargeShopItemAdapter(shopItem, itemData)
local curBuyCount = itemData.buyTimes
first:SetActive(curBuyCount < 1)
firstNum.text = itemInfo.FirstMultiple[1][2]
local isshow = false
if self.ShopType == ShopManager.selectIndex2.shopType then
for j = 1 , #ShopManager.selectIndex2.storeId do
if itemData.id == ShopManager.selectIndex2.storeId[j] then
isshow = true
break
end
end
end
if isshow then
effect.gameObject:SetActive(true)
end
-- 购买事件
Util.AddOnceClick(shopItem, function()
PayManager.Pay(itemData.goodsId, function(id)