关卡挂机游戏提交
parent
9982bc0df8
commit
7acb7c8f44
|
@ -10814,7 +10814,7 @@ RectTransform:
|
|||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 0, y: 0}
|
||||
m_AnchoredPosition: {x: 159, y: 0}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 68.95}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &1240811747
|
||||
|
@ -11139,7 +11139,7 @@ RectTransform:
|
|||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 0, y: 0}
|
||||
m_AnchoredPosition: {x: 301.5, y: 0}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 68.95}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &1596169479
|
||||
|
@ -75820,6 +75820,80 @@ MonoBehaviour:
|
|||
m_FillClockwise: 1
|
||||
m_FillOrigin: 0
|
||||
m_UseSpriteMesh: 0
|
||||
--- !u!1 &3981500424640141662
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 8467410929882444392}
|
||||
- component: {fileID: 6634948832348308730}
|
||||
- component: {fileID: 6353738166926712364}
|
||||
m_Layer: 5
|
||||
m_Name: Image
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &8467410929882444392
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 3981500424640141662}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 942618210107869783}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||
m_AnchoredPosition: {x: 0, y: -26.999985}
|
||||
m_SizeDelta: {x: 362, y: 114}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &6634948832348308730
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 3981500424640141662}
|
||||
m_CullTransparentMesh: 0
|
||||
--- !u!114 &6353738166926712364
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 3981500424640141662}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: -765806418, guid: f70555f144d8491a825f0804e09c671c, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_RaycastTarget: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI,
|
||||
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
m_Sprite: {fileID: 21300000, guid: bed0f3ecb49860b44b7fc53703900f59, type: 3}
|
||||
m_Type: 0
|
||||
m_PreserveAspect: 0
|
||||
m_FillCenter: 1
|
||||
m_FillMethod: 4
|
||||
m_FillAmount: 1
|
||||
m_FillClockwise: 1
|
||||
m_FillOrigin: 0
|
||||
m_UseSpriteMesh: 0
|
||||
--- !u!1 &3988909078317694928
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -96426,6 +96500,7 @@ RectTransform:
|
|||
- {fileID: 3685741920651583255}
|
||||
- {fileID: 3829532297210306968}
|
||||
- {fileID: 5073206815621103962}
|
||||
- {fileID: 942618210107869783}
|
||||
m_Father: {fileID: 6976277603980592380}
|
||||
m_RootOrder: 11
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
|
@ -139167,7 +139242,7 @@ RectTransform:
|
|||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 0, y: 0}
|
||||
m_AnchoredPosition: {x: 355, y: 0}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 69.49}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &7203306409298755909
|
||||
|
@ -145508,6 +145583,125 @@ MonoBehaviour:
|
|||
m_LineSpacing: 1
|
||||
m_Text: "\u6311\u6218\u5173\u5361"
|
||||
LanguageIndex: 10528
|
||||
--- !u!1 &8169985070558332314
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 942618210107869783}
|
||||
- component: {fileID: 7612849677858618825}
|
||||
- component: {fileID: 2510915471638753199}
|
||||
- component: {fileID: 4837312869898867921}
|
||||
m_Layer: 5
|
||||
m_Name: hookKill
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &942618210107869783
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8169985070558332314}
|
||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children:
|
||||
- {fileID: 8467410929882444392}
|
||||
- {fileID: 7818017641194270018}
|
||||
m_Father: {fileID: 7718967529276036518}
|
||||
m_RootOrder: 4
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||
m_AnchoredPosition: {x: -5, y: 154.59998}
|
||||
m_SizeDelta: {x: 362, y: 166.7}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &7612849677858618825
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8169985070558332314}
|
||||
m_CullTransparentMesh: 0
|
||||
--- !u!114 &2510915471638753199
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8169985070558332314}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: -765806418, guid: f70555f144d8491a825f0804e09c671c, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 0}
|
||||
m_RaycastTarget: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI,
|
||||
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
m_Sprite: {fileID: 0}
|
||||
m_Type: 0
|
||||
m_PreserveAspect: 0
|
||||
m_FillCenter: 1
|
||||
m_FillMethod: 4
|
||||
m_FillAmount: 1
|
||||
m_FillClockwise: 1
|
||||
m_FillOrigin: 0
|
||||
m_UseSpriteMesh: 0
|
||||
--- !u!114 &4837312869898867921
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8169985070558332314}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 1392445389, guid: f70555f144d8491a825f0804e09c671c, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Navigation:
|
||||
m_Mode: 3
|
||||
m_SelectOnUp: {fileID: 0}
|
||||
m_SelectOnDown: {fileID: 0}
|
||||
m_SelectOnLeft: {fileID: 0}
|
||||
m_SelectOnRight: {fileID: 0}
|
||||
m_Transition: 1
|
||||
m_Colors:
|
||||
m_NormalColor: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
|
||||
m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1}
|
||||
m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608}
|
||||
m_ColorMultiplier: 1
|
||||
m_FadeDuration: 0.1
|
||||
m_SpriteState:
|
||||
m_HighlightedSprite: {fileID: 0}
|
||||
m_PressedSprite: {fileID: 0}
|
||||
m_DisabledSprite: {fileID: 0}
|
||||
m_AnimationTriggers:
|
||||
m_NormalTrigger: Normal
|
||||
m_HighlightedTrigger: Highlighted
|
||||
m_PressedTrigger: Pressed
|
||||
m_DisabledTrigger: Disabled
|
||||
m_Interactable: 1
|
||||
m_TargetGraphic: {fileID: 2510915471638753199}
|
||||
m_OnClick:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_TypeName: UnityEngine.UI.Button+ButtonClickedEvent, UnityEngine.UI, Version=1.0.0.0,
|
||||
Culture=neutral, PublicKeyToken=null
|
||||
--- !u!1 &8182835857866926141
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -147015,6 +147209,86 @@ Animator:
|
|||
m_HasTransformHierarchy: 1
|
||||
m_AllowConstantClipSamplingOptimization: 1
|
||||
m_KeepAnimatorControllerStateOnDisable: 0
|
||||
--- !u!1 &9222517689962699176
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 7818017641194270018}
|
||||
- component: {fileID: 7443420381470962942}
|
||||
- component: {fileID: 8285636345709144187}
|
||||
m_Layer: 5
|
||||
m_Name: Text
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &7818017641194270018
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 9222517689962699176}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 942618210107869783}
|
||||
m_RootOrder: 1
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
m_AnchoredPosition: {x: 3.6100006, y: -18.559998}
|
||||
m_SizeDelta: {x: -80.94, y: -87.24}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &7443420381470962942
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 9222517689962699176}
|
||||
m_CullTransparentMesh: 0
|
||||
--- !u!114 &8285636345709144187
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 9222517689962699176}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: ebfe0e44da74fbd44b1b744995de2324, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 0.18431373, g: 0.1254902, b: 0.011764706, a: 1}
|
||||
m_RaycastTarget: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI,
|
||||
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
m_FontData:
|
||||
m_Font: {fileID: 12800000, guid: 4b73e9e4512d17e4daeea351e090d33c, type: 3}
|
||||
m_FontSize: 50
|
||||
m_FontStyle: 0
|
||||
m_BestFit: 1
|
||||
m_MinSize: 4
|
||||
m_MaxSize: 50
|
||||
m_Alignment: 4
|
||||
m_AlignByGeometry: 0
|
||||
m_RichText: 1
|
||||
m_HorizontalOverflow: 0
|
||||
m_VerticalOverflow: 0
|
||||
m_LineSpacing: 1
|
||||
m_Text: 1/10
|
||||
LanguageIndex: 10528
|
||||
--- !u!1001 &536767011877295405
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -147147,6 +147421,11 @@ PrefabInstance:
|
|||
m_Modification:
|
||||
m_TransformParent: {fileID: 5391497229806396012}
|
||||
m_Modifications:
|
||||
- target: {fileID: 4537954547819557299, guid: 45fb9a1ded4a71146ba636b09e5dabcf,
|
||||
type: 3}
|
||||
propertyPath: m_Name
|
||||
value: UI_Effect_MuBiaoJiangLi
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8645003667159546895, guid: 45fb9a1ded4a71146ba636b09e5dabcf,
|
||||
type: 3}
|
||||
propertyPath: m_LocalPosition.x
|
||||
|
@ -147252,11 +147531,6 @@ PrefabInstance:
|
|||
propertyPath: m_Pivot.y
|
||||
value: 0.5
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4537954547819557299, guid: 45fb9a1ded4a71146ba636b09e5dabcf,
|
||||
type: 3}
|
||||
propertyPath: m_Name
|
||||
value: UI_Effect_MuBiaoJiangLi
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7667894851207529766, guid: 45fb9a1ded4a71146ba636b09e5dabcf,
|
||||
type: 3}
|
||||
propertyPath: m_IsActive
|
||||
|
@ -147284,15 +147558,15 @@ PrefabInstance:
|
|||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_SourcePrefab: {fileID: 100100000, guid: 45fb9a1ded4a71146ba636b09e5dabcf, type: 3}
|
||||
--- !u!1 &1533186584701823329 stripped
|
||||
GameObject:
|
||||
m_CorrespondingSourceObject: {fileID: 7582181376025013934, guid: 45fb9a1ded4a71146ba636b09e5dabcf,
|
||||
type: 3}
|
||||
m_PrefabInstance: {fileID: 8971074634032498639}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!224 &830511510176938944 stripped
|
||||
RectTransform:
|
||||
m_CorrespondingSourceObject: {fileID: 8645003667159546895, guid: 45fb9a1ded4a71146ba636b09e5dabcf,
|
||||
type: 3}
|
||||
m_PrefabInstance: {fileID: 8971074634032498639}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!1 &1533186584701823329 stripped
|
||||
GameObject:
|
||||
m_CorrespondingSourceObject: {fileID: 7582181376025013934, guid: 45fb9a1ded4a71146ba636b09e5dabcf,
|
||||
type: 3}
|
||||
m_PrefabInstance: {fileID: 8971074634032498639}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
|
|
|
@ -22,6 +22,8 @@ local callBack
|
|||
|
||||
local count = 1
|
||||
|
||||
local maxKillNum=10
|
||||
local curKillNum=0
|
||||
local timeImg = {
|
||||
[1] = "r_guanka_daojishi_01",
|
||||
[2] = "r_guanka_daojishi_02",
|
||||
|
@ -107,6 +109,9 @@ function FightPointPassMainPanel:InitComponent()
|
|||
-- 你要变强
|
||||
this.btnGetForce = Util.GetGameObject(self.gameObject, "Bg/btnDown/btnIWantMilk")
|
||||
|
||||
this.hookKill = Util.GetGameObject(self.gameObject, "Bg/btnDown/hookKill")
|
||||
this.hookKillText = Util.GetGameObject(self.gameObject, "Bg/btnDown/hookKill/Text"):GetComponent("Text")
|
||||
|
||||
|
||||
if not this.playerInfoView then
|
||||
this.playerInfoView = SubUIManager.Open(SubUIConfig.PlayerInfoView, this.transform)
|
||||
|
@ -285,6 +290,10 @@ function FightPointPassMainPanel:BindEvent()
|
|||
this.ExcuteBattle()
|
||||
end)
|
||||
|
||||
Util.AddClick(this.hookKill, function ()
|
||||
this:PlayerKillAllSkill()
|
||||
end)
|
||||
|
||||
Util.AddClick(this.btnMap, function ()
|
||||
if not FightPointPassManager.IsChapterClossState() then
|
||||
UIManager.OpenPanel(UIName.FightSmallChoosePanel, FightPointPassManager.lastPassFightId)
|
||||
|
@ -362,6 +371,22 @@ function this.SetInitAnim()
|
|||
UIManager.OpenPanel(UIName.FightLevelSwitchPopup, true)
|
||||
end
|
||||
|
||||
function this:PlayerKillAllSkill()
|
||||
local offset = Vector3.zero
|
||||
local go = BattleManager.LoadAsset("Effect_c_jw_0003_attack_01", 10)
|
||||
go.transform:SetParent(self.gameObject.transform)
|
||||
go.transform.localScale = Vector3.one
|
||||
go.transform.localPosition =offset
|
||||
go:SetActive(true)
|
||||
this.skillTimer = Timer.New(function ()
|
||||
fightMap.AllBattleEnd()
|
||||
end,3)
|
||||
this.skillTimer:Start()
|
||||
Timer.New(function ()
|
||||
destroy(go)
|
||||
end,5):Start()
|
||||
|
||||
end
|
||||
-- 隐藏显示面板
|
||||
-- function this.SetAnimPanelState(isShow)
|
||||
-- local offset = isShow and 0 or 2000
|
||||
|
@ -436,10 +461,11 @@ function FightPointPassMainPanel:OnShow()
|
|||
else
|
||||
this.btnFirstRechar:SetActive(false)
|
||||
end
|
||||
local curFightId = FightPointPassManager.curOpenFight
|
||||
-- 功能引导存在时不再显示成长界面
|
||||
if FightPointPassManager.GetIsOpenRewardUpTip() and not GuideManager.IsFunctionGuideExist() then
|
||||
local oldLevelId = FightPointPassManager.lastPassFightId
|
||||
local curLevelId = FightPointPassManager.curOpenFight
|
||||
local curLevelId = curFightId
|
||||
local oldLevelConFig = ConfigManager.GetConfigData(ConfigName.MainLevelConfig,oldLevelId)
|
||||
local curLevelConFig = ConfigManager.GetConfigData(ConfigName.MainLevelConfig,curLevelId)
|
||||
local data = {}
|
||||
|
@ -468,8 +494,8 @@ function FightPointPassMainPanel:OnShow()
|
|||
-- 调用onshow
|
||||
invadeMonster:OnShow()
|
||||
|
||||
local curName = GetLanguageStrById(fightLevelConfig[FightPointPassManager.curOpenFight].Name)
|
||||
local curDifficulty = fightLevelConfig[FightPointPassManager.curOpenFight].Difficulty
|
||||
local curName = GetLanguageStrById(fightLevelConfig[curFightId].Name)
|
||||
local curDifficulty = fightLevelConfig[curFightId].Difficulty
|
||||
local chapterId = 0
|
||||
local str = ""
|
||||
if not FightPointPassManager.IsChapterClossState() then
|
||||
|
@ -543,6 +569,15 @@ function FightPointPassMainPanel:OnShow()
|
|||
--
|
||||
this.battleUpLvTip:SetActive(false)
|
||||
this.RefreshBattleUpLvTip(true)
|
||||
if fightLevelConfig[curFightId].Hang>0 then
|
||||
this.btnFight.gameObject:SetActive(false)
|
||||
this.hookKill.gameObject:SetActive(true)
|
||||
curKillNum=0
|
||||
this.hookKillText.text=string.format("%s/%s",curKillNum,maxKillNum)
|
||||
else
|
||||
this.btnFight.gameObject:SetActive(true)
|
||||
this.hookKill.gameObject:SetActive(false)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
|
@ -788,8 +823,26 @@ function this.ExcuteBattle()
|
|||
end)
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
function this.RefreshFightBtnShow()
|
||||
local curFightId = FightPointPassManager.curOpenFight
|
||||
if fightLevelConfig[curFightId].Hang > 0 then
|
||||
curKillNum=curKillNum+1
|
||||
this.hookKillText.text=string.format("%s/%s",curKillNum,maxKillNum)
|
||||
if curKillNum>=maxKillNum then
|
||||
this.btnFight.gameObject:SetActive(true)
|
||||
this.hookKill.gameObject:SetActive(false)
|
||||
curKillNum=0
|
||||
FightPointPassManager.ExecuteFightStory(curFightId, function(drop)
|
||||
UIManager.OpenPanel(UIName.RewardItemPopup, drop, 1, function()
|
||||
this:OnShow()
|
||||
end,1)
|
||||
end)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
function FightPointPassMainPanel:OnSortingOrderChange()
|
||||
invadeMonster:OnSortingOrderChange()
|
||||
|
@ -836,6 +889,11 @@ function FightPointPassMainPanel:OnClose()
|
|||
this.timer:Stop()
|
||||
this.timer = nil
|
||||
end
|
||||
|
||||
if this.skillTimer then
|
||||
this.skillTimer:Stop()
|
||||
this.skillTimer = nil
|
||||
end
|
||||
end
|
||||
|
||||
--界面销毁时调用(用于子类重写)
|
||||
|
|
|
@ -66,9 +66,6 @@ local m_parent
|
|||
this.isClose = false
|
||||
--root FightPointPassMainPanel.gameObject FightPointPassMainPanel脚本
|
||||
function this:InitComponent(root, parent)
|
||||
|
||||
|
||||
|
||||
Log("初始化地图资源")
|
||||
m_orginLayer = 0
|
||||
m_parent = parent
|
||||
|
@ -100,6 +97,7 @@ end
|
|||
function this:Init()
|
||||
this.isClose = false
|
||||
this.isCanUseIconList = 0
|
||||
this.fightType= ConfigManager.GetConfigData(ConfigName.MainLevelConfig, FightPointPassManager.curOpenFight).Hang
|
||||
-- 初始化加载地图块数据
|
||||
this:LoadMapData()
|
||||
-- 加载一个小人
|
||||
|
@ -108,7 +106,7 @@ function this:Init()
|
|||
--Log(m_curMapId)
|
||||
if ActTimeCtrlManager.SingleFuncState(FUNCTION_OPEN_TYPE.guajigongneng) then
|
||||
iconNum = 20
|
||||
local randomNum = 8--math.random(2,3)
|
||||
local randomNum = 0--math.random(2,3)
|
||||
PlayerManager.GetFightMapPlayerNPCData(randomNum,function(NPCList)
|
||||
if this.isClose then
|
||||
return
|
||||
|
@ -140,7 +138,18 @@ function this:Init()
|
|||
TileMapView.SetCameraPos(v4)
|
||||
-- 初始化两个地图标志
|
||||
this.LoadMapIcon()
|
||||
this.SetPlayerViewWalk()
|
||||
if this.fightType~=2 then
|
||||
this.SetPlayerViewWalk()
|
||||
else
|
||||
this.startTimer2 = Timer.New(function ()
|
||||
m_parent:PlayerKillAllSkill()
|
||||
end,7)
|
||||
this.startTimer2:Start()
|
||||
end
|
||||
|
||||
-- for k, v in pairs(this.iconList) do
|
||||
-- v.RunTargetPos(startUV[m_curMapId].u,startUV[m_curMapId].v)
|
||||
-- end
|
||||
end
|
||||
|
||||
function this:LoadMapData()
|
||||
|
@ -340,7 +349,7 @@ function this.LoadPointIcon(useAnim)
|
|||
|
||||
local mapPointId = math.random(1,maxIcon)
|
||||
-- 随机出来的位置已经有图标,则再次随机
|
||||
if this.iconList[pos] or pos == 1285 or this.IsHaveBitchNear(pos) then
|
||||
if this.iconList[pos] or pos == 1285 or this.IsHaveBitchNear(pos) or mapPointId==5 or mapPointId==7 then
|
||||
this.LoadPointIcon()
|
||||
else
|
||||
local pointView = MapPointView.New(u, v, mapPointId)
|
||||
|
@ -357,6 +366,10 @@ function this.LoadPointIcon(useAnim)
|
|||
pointView.go:GetComponent("RectTransform").anchoredPosition3D = targetPos
|
||||
end
|
||||
pointView:SetPointAnimation(pointView.iconId, 1)
|
||||
if this.fightType==2 then
|
||||
pointView:RunTargetPos(startUV[m_curMapId].u,startUV[m_curMapId].v)
|
||||
end
|
||||
|
||||
pointView.go.transform.localScale = Vector3.one
|
||||
|
||||
-- 额外尺寸设置
|
||||
|
@ -432,6 +445,21 @@ function this.BattleEnd(selectPointPos,isSelf)
|
|||
local num = math.random(1,#strList)
|
||||
FightPointPassManager.randomNum = num
|
||||
end
|
||||
m_parent.RefreshFightBtnShow()
|
||||
end
|
||||
|
||||
----全部小怪死亡
|
||||
function this.AllBattleEnd()
|
||||
for k, v in pairs(this.iconList) do
|
||||
this.BattleEnd(k)
|
||||
end
|
||||
this.fightType=0
|
||||
this.LoadMapIcon()
|
||||
this.SetPlayerViewWalk()
|
||||
if this.startTimer2 then
|
||||
this.startTimer2:Stop()
|
||||
end
|
||||
this.startTimer2 = nil
|
||||
end
|
||||
|
||||
--- ==================== 角色行走 =====================================
|
||||
|
@ -497,6 +525,10 @@ function this:OnClose()
|
|||
this.startTimer:Stop()
|
||||
end
|
||||
this.startTimer = nil
|
||||
if this.startTimer2 then
|
||||
this.startTimer2:Stop()
|
||||
end
|
||||
this.startTimer2 = nil
|
||||
this.StopAction()
|
||||
this.OnGameOver()
|
||||
end
|
||||
|
@ -506,6 +538,10 @@ function this:Dispose()
|
|||
this.startTimer:Stop()
|
||||
end
|
||||
this.startTimer = nil
|
||||
if this.startTimer2 then
|
||||
this.startTimer2:Stop()
|
||||
end
|
||||
this.startTimer2 = nil
|
||||
this.StopAction()
|
||||
this.OnGameOver()
|
||||
end
|
||||
|
|
|
@ -235,6 +235,13 @@ function MapPointView:SetPointAnimation(iconId, index)
|
|||
end
|
||||
end
|
||||
|
||||
function MapPointView:RunTargetPos(u,v)
|
||||
local v3 = TileMapView.GetLiveTilePos(u, v)
|
||||
local _x=self.go.transform.localPosition.x>2700 and 3000 or 2400
|
||||
local _y=self.go.transform.localPosition.y>-2700 and -2400 or -3000
|
||||
self.go.transform:DOLocalMove(Vector3(2700, -2700, v3.z - 10), 10, false):SetEase(Ease.Linear)
|
||||
end
|
||||
|
||||
function MapPointView:Dispose()
|
||||
self.hadExit = true
|
||||
if self.timer then
|
||||
|
|
Loading…
Reference in New Issue