【天宫寻宝】按钮增加特效
parent
d156471087
commit
a0fb7f5714
Binary file not shown.
After Width: | Height: | Size: 58 KiB |
|
@ -0,0 +1,121 @@
|
|||
fileFormatVersion: 2
|
||||
guid: bb880b14f2456f347836e48a5ae490de
|
||||
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: 2
|
||||
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: Android
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: 65
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 1
|
||||
androidETC2FallbackOverride: 0
|
||||
- serializedVersion: 2
|
||||
buildTarget: iPhone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: 65
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 1
|
||||
androidETC2FallbackOverride: 0
|
||||
- serializedVersion: 2
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: 4
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 1
|
||||
androidETC2FallbackOverride: 0
|
||||
- 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: bddba14340984f545b482c1c31e0943e
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
spritePackingTag: FirstRechargeAtlas
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 13530c662e5ef4044bd57f7c0ef85a4a
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 044d2f7b0fff0e0458b96222457f2d87
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,37 @@
|
|||
%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: UI_Effect_TouXiang_Lanlong_02
|
||||
m_Shader: {fileID: 4800000, guid: 508f1ff17d221c748927a8db3bc7ee3f, type: 3}
|
||||
m_ShaderKeywords:
|
||||
m_LightmapFlags: 4
|
||||
m_EnableInstancingVariants: 0
|
||||
m_DoubleSidedGI: 0
|
||||
m_CustomRenderQueue: -1
|
||||
stringTagMap: {}
|
||||
disabledShaderPasses: []
|
||||
m_SavedProperties:
|
||||
serializedVersion: 3
|
||||
m_TexEnvs:
|
||||
- _Lin:
|
||||
m_Texture: {fileID: 2800000, guid: 1556ba40063954e4a9376d89eb48a29e, type: 3}
|
||||
m_Scale: {x: 1, y: 0.5}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _MainTex:
|
||||
m_Texture: {fileID: 2800000, guid: bb880b14f2456f347836e48a5ae490de, type: 3}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
m_Floats:
|
||||
- _InvFade: 1
|
||||
- _Num: 0.3
|
||||
- _Speed: 0.4
|
||||
- _Stencil: 0
|
||||
m_Colors:
|
||||
- _MainColor: {r: 1, g: 1, b: 1, a: 0}
|
||||
- _TintColor: {r: 1, g: 1, b: 1, a: 1}
|
|
@ -0,0 +1,9 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 42ee0bcddf3721e4fa975bae69de7802
|
||||
timeCreated: 1528724438
|
||||
licenseType: Pro
|
||||
NativeFormatImporter:
|
||||
mainObjectFileID: 2100000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 856525e892b3274458785147dd7ccbb8
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,7 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 7c65b4cc4899a8e4ab17d19209905b32
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -63,6 +63,7 @@ function FindTreasureMainPanel:InitComponent()
|
|||
|
||||
self.textImage = Util.GetGameObject(self.gameObject, "titleBg/bg2/Image")
|
||||
self.goBtn = Util.GetGameObject(self.textImage, "Button")
|
||||
self.btnEffect = Util.GetGameObject(self.goBtn, "UI_Effect_MianBan_GuaJi_Ani")
|
||||
orginLayer = 0
|
||||
end
|
||||
|
||||
|
@ -199,6 +200,7 @@ function FindTreasureMainPanel:OnSortingOrderChange()
|
|||
end
|
||||
end
|
||||
end
|
||||
Util.AddParticleSortLayer(self.btnEffect, self.sortingOrder - orginLayer)
|
||||
Util.AddParticleSortLayer(self.FindTreasureVipEffect, self.sortingOrder - orginLayer)
|
||||
orginLayer = self.sortingOrder
|
||||
end
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
require("Base/BasePanel")
|
||||
FindTreasureVipPopup = Inherit(BasePanel)
|
||||
local MazeTreasureSetting = ConfigManager.GetConfig(ConfigName.MazeTreasureSetting)
|
||||
local orginLayer = 0
|
||||
--初始化组件(用于子类重写)
|
||||
function FindTreasureVipPopup:InitComponent()
|
||||
|
||||
|
@ -16,6 +17,9 @@ function FindTreasureVipPopup:InitComponent()
|
|||
self.finfsh2 = Util.GetGameObject(self.gameObject, "GameObject2/finish")
|
||||
self.jumpBtn2Text = Util.GetGameObject(self.gameObject, "GameObject2/jumpBtn/Text"):GetComponent("Text")
|
||||
self.finfsh2Text = Util.GetGameObject(self.gameObject, "GameObject2/finish/Text"):GetComponent("Text")
|
||||
|
||||
self.effect1 = Util.GetGameObject(self.jumpBtn1, "UI_Effect_MianBan_GuaJi_Ani")
|
||||
self.effect2 = Util.GetGameObject(self.jumpBtn2, "UI_Effect_MianBan_GuaJi_Ani")
|
||||
end
|
||||
|
||||
--绑定事件(用于子类重写)
|
||||
|
@ -42,6 +46,12 @@ function FindTreasureVipPopup:RemoveListener()
|
|||
|
||||
end
|
||||
|
||||
function FindTreasureVipPopup:OnSortingOrderChange()
|
||||
Util.AddParticleSortLayer(self.effect1, self.sortingOrder - orginLayer)
|
||||
Util.AddParticleSortLayer(self.effect2, self.sortingOrder - orginLayer)
|
||||
orginLayer = self.sortingOrder
|
||||
end
|
||||
|
||||
--界面打开时调用(用于子类重写)
|
||||
function FindTreasureVipPopup:OnOpen(...)
|
||||
|
||||
|
@ -75,7 +85,7 @@ end
|
|||
|
||||
--界面销毁时调用(用于子类重写)
|
||||
function FindTreasureVipPopup:OnDestroy()
|
||||
|
||||
orginLayer = 0
|
||||
end
|
||||
|
||||
return FindTreasureVipPopup
|
Loading…
Reference in New Issue