【寻宝迷踪】提交
parent
4edc9a855b
commit
4dc9136405
|
@ -0,0 +1,512 @@
|
|||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1 &6910899030986088784
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 6697787164710513212}
|
||||
m_Layer: 5
|
||||
m_Name: selectMap
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &6697787164710513212
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 6910899030986088784}
|
||||
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: 6697160554909647086}
|
||||
m_Father: {fileID: 6696865751648667954}
|
||||
m_RootOrder: 3
|
||||
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: 329.21033, y: -433.46777}
|
||||
m_SizeDelta: {x: 100, y: 100}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!1 &6911196930985704518
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 6696865751648667954}
|
||||
m_Layer: 5
|
||||
m_Name: mapParent
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &6696865751648667954
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 6911196930985704518}
|
||||
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: 8071926610741082175}
|
||||
- {fileID: 6697885432122366250}
|
||||
- {fileID: 6697897309647561934}
|
||||
- {fileID: 6697787164710513212}
|
||||
m_Father: {fileID: 6697065354150255466}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!1 &6911197869067356808
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 6697160554909647086}
|
||||
- component: {fileID: 6700072320805055296}
|
||||
m_Layer: 5
|
||||
m_Name: Image (1)
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &6697160554909647086
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 6911197869067356808}
|
||||
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: 0.99978596}
|
||||
m_Children:
|
||||
- {fileID: 6697455761152388010}
|
||||
m_Father: {fileID: 6697787164710513212}
|
||||
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: 213.43}
|
||||
m_SizeDelta: {x: 223.75, y: 223.06}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &6700072320805055296
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 6911197869067356808}
|
||||
m_CullTransparentMesh: 0
|
||||
--- !u!1 &6911256895343388702
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 6697455761152388010}
|
||||
- component: {fileID: 6699328219256607758}
|
||||
m_Layer: 0
|
||||
m_Name: roleRoot
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &6697455761152388010
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 6911256895343388702}
|
||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 0.23, y: 0.23, z: 0.23}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 6697160554909647086}
|
||||
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: 4.3, y: -104.5}
|
||||
m_SizeDelta: {x: 100, y: 100}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &6699328219256607758
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 6911256895343388702}
|
||||
m_CullTransparentMesh: 0
|
||||
--- !u!1 &6911720307855368698
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 6697897309647561934}
|
||||
m_Layer: 5
|
||||
m_Name: mapArea
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &6697897309647561934
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 6911720307855368698}
|
||||
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: 6696865751648667954}
|
||||
m_RootOrder: 2
|
||||
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: -2882, y: 0}
|
||||
m_SizeDelta: {x: 100, y: 100}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!1 &6911780636011805136
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 6697065354150255466}
|
||||
- component: {fileID: 6699756778314060344}
|
||||
- component: {fileID: 6698716834202812650}
|
||||
- component: {fileID: 6807301128982435738}
|
||||
m_Layer: 5
|
||||
m_Name: XunBaoMiZongMapPanel
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &6697065354150255466
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 6911780636011805136}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1.0002141, y: 1.0002141, z: 1.0002141}
|
||||
m_Children:
|
||||
- {fileID: 6696865751648667954}
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &6699756778314060344
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 6911780636011805136}
|
||||
m_CullTransparentMesh: 0
|
||||
--- !u!223 &6698716834202812650
|
||||
Canvas:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 6911780636011805136}
|
||||
m_Enabled: 1
|
||||
serializedVersion: 3
|
||||
m_RenderMode: 2
|
||||
m_Camera: {fileID: 0}
|
||||
m_PlaneDistance: 100
|
||||
m_PixelPerfect: 0
|
||||
m_ReceivesEvents: 1
|
||||
m_OverrideSorting: 1
|
||||
m_OverridePixelPerfect: 0
|
||||
m_SortingBucketNormalizedSize: 0
|
||||
m_AdditionalShaderChannelsFlag: 0
|
||||
m_SortingLayerID: 0
|
||||
m_SortingOrder: 0
|
||||
m_TargetDisplay: 0
|
||||
--- !u!114 &6807301128982435738
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 6911780636011805136}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 1301386320, guid: f70555f144d8491a825f0804e09c671c, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_IgnoreReversedGraphics: 1
|
||||
m_BlockingObjects: 0
|
||||
m_BlockingMask:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
--- !u!1 &6912701969793785846
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 6697885432122366250}
|
||||
- component: {fileID: 6698326531316243590}
|
||||
- component: {fileID: 2161005215377263764}
|
||||
- component: {fileID: 6807323947724025396}
|
||||
- component: {fileID: 4499456980713605889}
|
||||
m_Layer: 5
|
||||
m_Name: btnBack
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &6697885432122366250
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 6912701969793785846}
|
||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 0.9997861, y: 0.9997861, z: 0.9997861}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 6696865751648667954}
|
||||
m_RootOrder: 1
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 0, y: 0}
|
||||
m_AnchoredPosition: {x: 70, y: 90}
|
||||
m_SizeDelta: {x: 140, y: 121}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &6698326531316243590
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 6912701969793785846}
|
||||
m_CullTransparentMesh: 0
|
||||
--- !u!114 &2161005215377263764
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 6912701969793785846}
|
||||
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: 2887ec8dbdcb57242a540f77f7cb5a72, 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!114 &6807323947724025396
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 6912701969793785846}
|
||||
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: 3
|
||||
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: 2161005215377263764}
|
||||
m_OnClick:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_TypeName: UnityEngine.UI.Button+ButtonClickedEvent, UnityEngine.UI, Version=1.0.0.0,
|
||||
Culture=neutral, PublicKeyToken=null
|
||||
--- !u!95 &4499456980713605889
|
||||
Animator:
|
||||
serializedVersion: 3
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 6912701969793785846}
|
||||
m_Enabled: 1
|
||||
m_Avatar: {fileID: 0}
|
||||
m_Controller: {fileID: 9100000, guid: 6ffe000b5a58aac48a9d130543849d76, type: 2}
|
||||
m_CullingMode: 0
|
||||
m_UpdateMode: 0
|
||||
m_ApplyRootMotion: 0
|
||||
m_LinearVelocityBlending: 0
|
||||
m_WarningMessage:
|
||||
m_HasTransformHierarchy: 1
|
||||
m_AllowConstantClipSamplingOptimization: 1
|
||||
m_KeepAnimatorControllerStateOnDisable: 0
|
||||
--- !u!1 &7615078593071936527
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 8071926610741082175}
|
||||
- component: {fileID: 1812102618297561682}
|
||||
- component: {fileID: 7647419706930275008}
|
||||
- component: {fileID: 6834491118443872082}
|
||||
m_Layer: 5
|
||||
m_Name: Ctrl
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &8071926610741082175
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 7615078593071936527}
|
||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 0.99978596, y: 0.99978596, z: 0.99978596}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 6696865751648667954}
|
||||
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: -722.8452, y: 169.96361}
|
||||
m_SizeDelta: {x: 5000, y: 5000}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &1812102618297561682
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 7615078593071936527}
|
||||
m_CullTransparentMesh: 0
|
||||
--- !u!114 &7647419706930275008
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 7615078593071936527}
|
||||
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 &6834491118443872082
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 7615078593071936527}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: -1862395651, guid: f70555f144d8491a825f0804e09c671c, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Delegates: []
|
||||
delegates: []
|
|
@ -0,0 +1,7 @@
|
|||
fileFormatVersion: 2
|
||||
guid: d59ea35aed6553c42a780961056d47a5
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -55751,6 +55751,10 @@ MonoBehaviour:
|
|||
extension: .prefab
|
||||
resPathIndex: 692
|
||||
resAbNameIndex: 3235
|
||||
- resName: XunBaoMiZongMapPanel
|
||||
extension: .prefab
|
||||
resPathIndex: 693
|
||||
resAbNameIndex: 3235
|
||||
- resName: XunBaoMiZongPanel
|
||||
extension: .prefab
|
||||
resPathIndex: 693
|
||||
|
@ -73684,6 +73688,7 @@ MonoBehaviour:
|
|||
- assetBundleName: lz4/prefabs/ui/generalpanel.unity3d
|
||||
dependences:
|
||||
- lz4/atlas/commonatlas.unity3d
|
||||
- lz4/atlas/mapatlas.unity3d
|
||||
- lz4/atlas/popupatlas.unity3d
|
||||
- lz4/atlas/practiceatlas.unity3d
|
||||
- lz4/atlas/publicatlas.unity3d
|
||||
|
|
|
@ -400,6 +400,7 @@ UIName = {
|
|||
RecruitMainPanel = 405,
|
||||
FightLevelTrialPanel = 400,--山河试炼
|
||||
XunBaoMiZongPanel = 406, --寻宝迷踪
|
||||
XunBaoMiZongMapPanel = 407, --寻宝迷踪地图界面
|
||||
}
|
||||
|
||||
SubUIConfig = {
|
||||
|
|
|
@ -0,0 +1,230 @@
|
|||
require("Base/BasePanel")
|
||||
require("Base/Stack")
|
||||
require("Modules/Map/Logic/TileMapController")
|
||||
require("Modules/Map/Logic/TileMapView")
|
||||
local XunBaoMiZongMap = Inherit(BasePanel)
|
||||
local this = XunBaoMiZongMap
|
||||
local mainLevelSettingConfig = ConfigManager.GetConfig(ConfigName.MainLevelSettingConfig)
|
||||
local func = nil
|
||||
local mapCtrl = "MapCtrl"
|
||||
local flagEventPool = {}
|
||||
-- 缩放值
|
||||
local offsetScale = math.min(Screen.width/3241, Screen.height/1920)
|
||||
--初始化组件(用于子类重写)
|
||||
function XunBaoMiZongMap:InitComponent()
|
||||
|
||||
self.spLoader = SpriteLoader.New()
|
||||
self.btnBack = Util.GetGameObject(self.gameObject, "mapParent/btnBack")
|
||||
self.dragCtrl = Util.GetGameObject(self.gameObject, "mapParent/Ctrl")
|
||||
self.selectMap = Util.GetGameObject(self.gameObject, "mapParent/selectMap")
|
||||
self.roleRoot = Util.GetGameObject(self.gameObject, "mapParent/selectMap/Image (1)/roleRoot")
|
||||
end
|
||||
|
||||
--绑定事件(用于子类重写)
|
||||
function XunBaoMiZongMap:BindEvent()
|
||||
Util.AddClick(self.btnBack, function()
|
||||
self:ClosePanel()
|
||||
end)
|
||||
end
|
||||
function XunBaoMiZongMap:OnSortingOrderChange()
|
||||
end
|
||||
--界面打开时调用(用于子类重写)
|
||||
function XunBaoMiZongMap:OnOpen(smallFightId,_isPlayAni,_func)
|
||||
func = _func
|
||||
SoundManager.PlaySound(SoundConfig.Sound_WorldMap)
|
||||
end
|
||||
|
||||
--界面打开或者重新打开后,界面刷新时调用(用于子类重写)
|
||||
function XunBaoMiZongMap:OnShow()
|
||||
|
||||
if self.liveNode then
|
||||
self.liveNode:OnClose()
|
||||
end
|
||||
self.liveNode = PlayerLiveView:New(self.roleRoot,1)
|
||||
self.liveNode:OnOpen(GetPlayerRoleSingleConFig().Scale5,Vector3.New(0,40,0),WALK_DIR.IDLE_FRONT)
|
||||
self.liveNode:SetTitleHide()
|
||||
self:LoadMapData()
|
||||
end
|
||||
|
||||
function XunBaoMiZongMap:LoadMapData()
|
||||
UIManager.camera.clearFlags = CameraClearFlags.Depth
|
||||
-- 所有物体的根节点
|
||||
self.mapRoot = poolManager:LoadAsset(mapCtrl, PoolManager.AssetType.GameObject)
|
||||
self.mapRoot.name = mapCtrl
|
||||
self.mapRoot.transform:SetParent(UIManager.uiRoot.transform.parent)
|
||||
self.mapRoot.transform.position = Vector3.New(0, 0, -100)
|
||||
|
||||
TileMapView.fogSize = 2
|
||||
TileMapView.AwakeInit(self.mapRoot, 5001)
|
||||
TileMapView.isShowFog = false
|
||||
|
||||
TileMapController.IsShieldDrag = function()
|
||||
--当栈中有逻辑,则拖动可以打断镜头跟随
|
||||
return false
|
||||
end
|
||||
TileMapController.OnClickTile = this.OnClickTile
|
||||
TileMapController.Init(self.mapRoot, self.dragCtrl)
|
||||
|
||||
TileMapView.Init()
|
||||
-- 设置相机初始化位置
|
||||
TileMapView.SetCameraPos(Vector3.New(14+(1.6*1011), 20.77, 0))-- -20.77
|
||||
-- 设置镜头的尺寸
|
||||
TileMapController.SetScale(TileMapView.GetMapScale() * offsetScale)
|
||||
|
||||
self._BuildFlag = {}
|
||||
self._BuildFlagClick = {}
|
||||
-- self.selectMap:SetActive(false)
|
||||
for buildType, config in ConfigPairs(ConfigManager.GetConfig(ConfigName.MainLevelSettingConfig)) do
|
||||
if mainLevelSettingConfig[buildType] == nil then return end
|
||||
local go = poolManager:LoadAsset("FightMiddleFlag", PoolManager.AssetType.GameObject)
|
||||
go.transform:SetParent(Util.GetTransform(self.mapRoot, "uiObj#"))
|
||||
go.name = "FightMiddleFlag"..buildType
|
||||
go:GetComponent("RectTransform").anchoredPosition3D = Vector3.New(config.ChapterTitlePosition[1], config.ChapterTitlePosition[2]-254, 10)
|
||||
Util.GetTransform(go, "click"):GetComponent("RectTransform").anchoredPosition3D = Vector3.New(config.ChapterClickPosition[1], config.ChapterClickPosition[2], 0)
|
||||
go.transform.localScale = Vector3.one
|
||||
self._BuildFlag[buildType] = go
|
||||
self._BuildFlagClick[buildType] = Util.GetTransform(go, "click").gameObject
|
||||
Util.GetGameObject(go, "name"):GetComponent("Text").text = GetLanguageStrById(mainLevelSettingConfig[buildType].Name)
|
||||
SetTextVerTial(Util.GetGameObject(go, "name"):GetComponent("Text"),Vector3.New(40.02,9.55,0))
|
||||
local passImage = Util.GetGameObject(go, "passImage"):SetActive(false)--关闭”通“字
|
||||
flagEventPool = {}
|
||||
end
|
||||
self:SelectRenPos(Util.GetTransform(self.mapRoot, "uiObj#"),Vector3.New(40.02,9.55,0))
|
||||
end
|
||||
|
||||
function XunBaoMiZongMap:SelectRenPos(_parent,ChapterRolePosition)
|
||||
if this.liveNode and this.liveNode.leader then
|
||||
this.liveNode.leader:SetActive(true)
|
||||
this.liveNode.leader.transform:SetParent(_parent.transform)
|
||||
this.liveNode.leader:GetComponent("RectTransform").anchoredPosition3D = ChapterRolePosition
|
||||
end
|
||||
end
|
||||
|
||||
-- 单击
|
||||
function this.OnClickTile(u, v,fuv)
|
||||
if this:CheckFlagClick(fuv) then return end
|
||||
Log(string.format("点击位置坐标(%s, %s)", u, v))
|
||||
local targetPos = Vector3.New(u,v,0)
|
||||
this:SetRoleWalk(targetPos)
|
||||
end
|
||||
|
||||
-- 检测是否点到旗子上
|
||||
function XunBaoMiZongMap:CheckFlagClick(fuv)
|
||||
local mousePos = TileMapView.GetLiveTilePos(fuv.x, -fuv.y) * 100
|
||||
for type, node in pairs(self._BuildFlag) do
|
||||
local nPos = node.transform.anchoredPosition3D
|
||||
local nRect = node.transform.rect
|
||||
local nPivot = node.transform.pivot
|
||||
local left = nPos.x + nRect.width * (0 - nPivot.x)
|
||||
local right = nPos.x + nRect.width * (1 - nPivot.x)
|
||||
local bottom = nPos.y + nRect.height * (0 - nPivot.y)
|
||||
local top = nPos.y + nRect.height * (1 - nPivot.y)
|
||||
if mousePos.x >= left and mousePos.x <= right
|
||||
and mousePos.y >= bottom and mousePos.y <= top then
|
||||
Log("type "..type.." "..LengthOfTable(flagEventPool))
|
||||
if flagEventPool[type] then
|
||||
flagEventPool[type]()
|
||||
return true
|
||||
end
|
||||
end
|
||||
end
|
||||
Log("LengthOfTable(self._BuildFlagClick "..LengthOfTable(self._BuildFlagClick))
|
||||
for type, node in pairs(self._BuildFlagClick) do
|
||||
local nPos = node.transform.anchoredPosition3D + self._BuildFlag[type].transform.anchoredPosition3D
|
||||
local nRect = node.transform.rect
|
||||
local nPivot = node.transform.pivot
|
||||
local left = nPos.x + nRect.width * (0 - nPivot.x)
|
||||
local right = nPos.x + nRect.width * (1 - nPivot.x)
|
||||
local bottom = nPos.y + nRect.height * (0 - nPivot.y)
|
||||
local top = nPos.y + nRect.height * (1 - nPivot.y)
|
||||
if mousePos.x >= left and mousePos.x <= right
|
||||
and mousePos.y >= bottom and mousePos.y <= top then
|
||||
Log("type "..type.." "..LengthOfTable(flagEventPool))
|
||||
if flagEventPool[type] then
|
||||
flagEventPool[type]()
|
||||
return true
|
||||
end
|
||||
end
|
||||
end
|
||||
return false
|
||||
end
|
||||
|
||||
-- 增加一个标记点
|
||||
function XunBaoMiZongMap:AddPointFunc(type, clickTipFunc)
|
||||
--mapPointEventPool[type * 10] = clickTipFunc
|
||||
flagEventPool[type] = clickTipFunc
|
||||
end
|
||||
|
||||
--角色行走
|
||||
function XunBaoMiZongMap:SetRoleWalk(_targetPos)
|
||||
|
||||
local targetPos = _targetPos
|
||||
local pos = Vector3.New(26,30,0)
|
||||
|
||||
if not self.liveNode then
|
||||
return
|
||||
end
|
||||
self.liveNode.leader.transform:DOLocalMove(targetPos, 1, false):OnStart(function ()
|
||||
self:SetRoleDirAction(targetPos.x, targetPos.y, pos.x, pos.y)
|
||||
end):OnUpdate(function() --TODO:测试速度
|
||||
|
||||
end):OnComplete(function ()
|
||||
Log("行走完毕")
|
||||
FightPointPassManager.SetChapterOpenState(false)
|
||||
self.liveNode:SetWalkDir(WALK_DIR.IDLE_FRONT)
|
||||
end):SetEase(Ease.Linear)
|
||||
end
|
||||
|
||||
function XunBaoMiZongMap:SetRoleDirAction(targetU, targetV, u0, v0)
|
||||
local dU = targetU - u0
|
||||
local dV = targetV - v0
|
||||
if dU > 0 then
|
||||
self:SetWalkDir(WALK_DIR.RUN_RIGHT)
|
||||
elseif dU < 0 then
|
||||
self:SetWalkDir(WALK_DIR.RUN_LEFT)
|
||||
elseif dV < 0 then
|
||||
self:SetWalkDir(WALK_DIR.RUN_UP)
|
||||
elseif dV > 0 then
|
||||
self:SetWalkDir(WALK_DIR.RUN_DOWN)
|
||||
end
|
||||
end
|
||||
|
||||
function XunBaoMiZongMap:SetWalkDir(dir)
|
||||
self.liveNode:SetWalkDir(dir)
|
||||
end
|
||||
|
||||
--卸载
|
||||
function XunBaoMiZongMap:Dispose()
|
||||
if self.liveNode then
|
||||
self.liveNode:OnClose()
|
||||
self.liveNode = nil
|
||||
end
|
||||
UIManager.camera.clearFlags = CameraClearFlags.Skybox
|
||||
TileMapView.Exit()
|
||||
TileMapController.Exit()
|
||||
poolManager:UnLoadAsset(mapCtrl, self.mapRoot, PoolManager.AssetType.GameObject)
|
||||
self.mapRoot = nil
|
||||
for _, flag in pairs(self._BuildFlag) do
|
||||
Util.AddOnceClick(flag, function()end)
|
||||
poolManager:UnLoadAsset("FightMiddleFlag", flag, PoolManager.AssetType.GameObject)
|
||||
end
|
||||
self._BuildFlag = {}
|
||||
self._BuildFlagClick = {}
|
||||
end
|
||||
|
||||
--界面关闭时调用(用于子类重写)
|
||||
function XunBaoMiZongMap:OnClose()
|
||||
self:Dispose()
|
||||
if func then
|
||||
func()
|
||||
func = nil
|
||||
end
|
||||
end
|
||||
|
||||
--界面销毁时调用(用于子类重写)
|
||||
function XunBaoMiZongMap:OnDestroy()
|
||||
self.spLoader:Destroy()
|
||||
|
||||
end
|
||||
|
||||
return XunBaoMiZongMap
|
|
@ -0,0 +1,7 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 66e2f238186123f4fb2ca183251a5ff6
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -42,7 +42,7 @@ function XunBaoMiZong:BindEvent()
|
|||
end)
|
||||
|
||||
Util.AddOnceClick(self.btnGO,function ()
|
||||
PopupTipPanel.ShowTip("寻宝")
|
||||
UIManager.OpenPanel(UIName.XunBaoMiZongMapPanel)
|
||||
end)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue