【降妖夺宝】特效补提
parent
14ba84052d
commit
59fb73ebe5
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 6e3144da3ca29be43a82615bc005a5ae
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: aa50b57a5a526d04aab109e05fb7ee00
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,29 @@
|
|||
%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: tx_xiaozhuanfeng_01
|
||||
m_Shader: {fileID: 4800000, guid: 5a335d9deda6b7441bcb6311537b7dec, type: 3}
|
||||
m_ShaderKeywords:
|
||||
m_LightmapFlags: 4
|
||||
m_EnableInstancingVariants: 0
|
||||
m_DoubleSidedGI: 0
|
||||
m_CustomRenderQueue: -1
|
||||
stringTagMap: {}
|
||||
disabledShaderPasses: []
|
||||
m_SavedProperties:
|
||||
serializedVersion: 3
|
||||
m_TexEnvs:
|
||||
- _MainTex:
|
||||
m_Texture: {fileID: 2800000, guid: b973f3f44049427488787b258e1aa057, type: 3}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
m_Floats:
|
||||
- _InvFade: 1
|
||||
m_Colors:
|
||||
- _TintColor: {r: 0.5, g: 0.5, b: 0.5, a: 0.5}
|
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: f7d3582bd77ac0c40aa24626fc1586a9
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 2100000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Binary file not shown.
After Width: | Height: | Size: 12 KiB |
|
@ -0,0 +1,88 @@
|
|||
fileFormatVersion: 2
|
||||
guid: b973f3f44049427488787b258e1aa057
|
||||
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: 1
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
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: 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
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
spritePackingTag:
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: b14e3891a59f4fc4499c4cd220157276
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,7 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 5ccef5cfbe3d53e4b8a3c7fa9c41b4ce
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,7 @@
|
|||
fileFormatVersion: 2
|
||||
guid: c97934c2eec98be49b26b06232d68cf2
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -61,6 +61,11 @@ function XiangYaoDuoBao:InitComponent(gameObject)
|
|||
this.reward = Util.GetGameObject(this.gameObject, "mid/reward")
|
||||
this.value = Util.GetGameObject(this.gameObject, "mid/value")
|
||||
|
||||
this.effect1 = Util.GetGameObject(this.gameObject, "Effect_xiaozhuanfeng_hit01")
|
||||
this.effect2 = Util.GetGameObject(this.gameObject, "Effect_xiaozhuanfeng_hit02")
|
||||
this.effect1:SetActive(false)
|
||||
this.effect2:SetActive(false)
|
||||
|
||||
end
|
||||
|
||||
function XiangYaoDuoBao:BindEvent()
|
||||
|
@ -86,7 +91,9 @@ function XiangYaoDuoBao:OnShow(_sortingOrder,_parent)
|
|||
local actId = ActivityGiftManager.IsActivityTypeOpen(ActivityTypeDef.XiangYaoDuoBao)
|
||||
if not actId or actId <= 0 then return end
|
||||
parent = _parent
|
||||
sortingOrder = _sortingOrder
|
||||
Util.AddParticleSortLayer(this.effect1, _sortingOrder - sortingOrder)
|
||||
Util.AddParticleSortLayer(this.effect2, _sortingOrder - sortingOrder)
|
||||
sortingOrder = sortingOrder
|
||||
this.gameObject:SetActive(true)
|
||||
|
||||
this:Refresh()
|
||||
|
@ -215,9 +222,11 @@ function XiangYaoDuoBao:refreshBtnShow()
|
|||
end
|
||||
local recruitOne = function()
|
||||
RoleLiveGOGraphic.AnimationState:SetAnimation(0, "hit1", true)
|
||||
this.effect1:SetActive(true)
|
||||
this.mainPanel.mask:SetActive(true)
|
||||
Timer.New(function ()
|
||||
RoleLiveGOGraphic.AnimationState:SetAnimation(0, "idle", true)
|
||||
this.effect1:SetActive(false)
|
||||
this.mainPanel.mask:SetActive(false)
|
||||
RecruitManager.RecruitRequest(singleRecruit.Id, function(msg)
|
||||
PrivilegeManager.RefreshPrivilegeUsedTimes(maxtimesId,1)--记录抽卡次数
|
||||
|
@ -246,9 +255,11 @@ function XiangYaoDuoBao:refreshBtnShow()
|
|||
end
|
||||
local recruitTen = function()
|
||||
RoleLiveGOGraphic.AnimationState:SetAnimation(0, "hit3", true)
|
||||
this.effect2:SetActive(true)
|
||||
this.mainPanel.mask:SetActive(true)
|
||||
Timer.New(function ()
|
||||
RoleLiveGOGraphic.AnimationState:SetAnimation(0, "idle", true)
|
||||
this.effect2:SetActive(false)
|
||||
this.mainPanel.mask:SetActive(false)
|
||||
RecruitManager.RecruitRequest(tenRecruit.Id, function(msg)
|
||||
PrivilegeManager.RefreshPrivilegeUsedTimes(maxtimesId,10)--记录抽卡次数
|
||||
|
@ -258,7 +269,7 @@ function XiangYaoDuoBao:refreshBtnShow()
|
|||
UIManager.OpenPanel(UIName.SingleRecruitPanel, msg.drop.Hero,tenRecruit.Id,bType.Btn10,{RecruitType.XiangYaoTen,RecruitType.XiangYaoTen})
|
||||
CheckRedPointStatus(RedPointType.XiangYaoDuoBao)
|
||||
end,freeTimesId)
|
||||
end,1.2):Start()
|
||||
end,2.5):Start()
|
||||
end
|
||||
if state==0 and d[1] ==16 and not isFree then
|
||||
UIManager.OpenPanel(UIName.GeneralPopup,GENERAL_POPUP_TYPE.RecruitConfirm,tenRecruit.Id,recruitTen)
|
||||
|
|
Loading…
Reference in New Issue