【跳过战斗优化】主线战斗中的BOSS关卡,改为不允许跳过 3

dev_chengFeng
zhangqiang 2021-05-18 18:18:45 +08:00
parent 1c6789c0cf
commit f7ee7f5642
4 changed files with 125296 additions and 125089 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@ -0,0 +1,88 @@
fileFormatVersion: 2
guid: c9c7888b453f05742a2da788f4f7066c
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: 8
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
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID: ac7cb9c113653824f82e6704a7e64ef4
vertices: []
indices:
edges: []
weights: []
spritePackingTag: BattleAtlas
pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0
userData:
assetBundleName:
assetBundleVariant:

File diff suppressed because it is too large Load Diff

View File

@ -59,6 +59,7 @@ function this:InitComponent()
this.BtnTimeScale = Util.GetGameObject(this.DownRoot, "option/BtnTimeScale")
this.BtnExit = Util.GetGameObject(this.DownRoot, "option/BtnExit")
this.ButtonLock = Util.GetGameObject(this.DownRoot, "option/Button/lock")
this.LevelBossLock = Util.GetGameObject(this.DownRoot, "option/Button/LevelBossLock")
this.BtnGM = Util.GetGameObject(this.DownRoot, "option/Button")
this.submit = Util.GetGameObject(this.DownRoot, "bg")
@ -120,13 +121,12 @@ function this:BindEvent()
end)
Util.AddClick(this.ButtonLock, function ()
if not IsUnLockBattlePass then
PopupTipPanel.ShowTip(Language[12237])
elseif fightType == BATTLE_TYPE.STORY_FIGHT and FightPointPassManager.GetCurOpenFightIdIsBoss() then--关卡特殊判断 首领阶段不能跳过按钮 置灰 提示 首领关卡不允许跳过!
PopupTipPanel.ShowTip("首领关卡不允许跳过!")
end
PopupTipPanel.ShowTip(Language[12237])
end)
Util.AddClick(this.LevelBossLock, function ()
PopupTipPanel.ShowTip("首领关卡不允许跳过!")
end)
local pauseTime = 31
Util.AddClick(this.BtnExit, function ()
if not BattleManager.IsUnlockBattlePass() then
@ -412,8 +412,9 @@ function this.InitOption()
Util.GetGameObject(this.BtnGM, "lock"):SetActive(not IsUnLockBattlePass)
this.BtnGM:GetComponent("Button").interactable = IsUnLockBattlePass
end
if fightType == BATTLE_TYPE.STORY_FIGHT then--关卡特殊判断 首领阶段不能跳过按钮 置灰 提示 首领关卡不允许跳过!
Util.GetGameObject(this.BtnGM, "lock"):SetActive(FightPointPassManager.GetCurOpenFightIdIsBoss())
this.LevelBossLock:SetActive(false)
if fightType == BATTLE_TYPE.STORY_FIGHT and (IsUnLockBattlePass or AppConst.isOpenGM) then--关卡特殊判断 首领阶段不能跳过按钮 置灰 提示 首领关卡不允许跳过!
this.LevelBossLock:SetActive(FightPointPassManager.GetCurOpenFightIdIsBoss())
end