diff --git a/meng_yao/Assets/Prefabs/ui/MineSelection.prefab b/meng_yao/Assets/Prefabs/ui/MineSelection.prefab new file mode 100644 index 00000000..a69df64f --- /dev/null +++ b/meng_yao/Assets/Prefabs/ui/MineSelection.prefab @@ -0,0 +1,1461 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1 &2040560310497499755 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 2040560310497499754} + - component: {fileID: 2040560310497499752} + - component: {fileID: 2040560310497499753} + m_Layer: 5 + m_Name: Text (Legacy) + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &2040560310497499754 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2040560310497499755} + 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_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 2040560311017107060} + 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 &2040560310497499752 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2040560310497499755} + m_CullTransparentMesh: 1 +--- !u!114 &2040560310497499753 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2040560310497499755} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_FontData: + m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} + m_FontSize: 38 + m_FontStyle: 0 + m_BestFit: 0 + m_MinSize: 0 + m_MaxSize: 42 + m_Alignment: 4 + m_AlignByGeometry: 0 + m_RichText: 1 + m_HorizontalOverflow: 0 + m_VerticalOverflow: 0 + m_LineSpacing: 1 + m_Text: "\u77FF\u5DE5\u5E02\u573A" +--- !u!1 &2040560310511239848 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 2040560310511239855} + - component: {fileID: 2040560310511239853} + - component: {fileID: 2040560310511239854} + m_Layer: 5 + m_Name: Content + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &2040560310511239855 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2040560310511239848} + 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_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 2040560310597988825} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 1, y: 1} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: -763.3795, y: 0} + m_Pivot: {x: 0, y: 1} +--- !u!114 &2040560310511239853 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2040560310511239848} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 3245ec927659c4140ac4f8d17403cc18, type: 3} + m_Name: + m_EditorClassIdentifier: + m_HorizontalFit: 2 + m_VerticalFit: 2 +--- !u!114 &2040560310511239854 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2040560310511239848} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 59f8146938fff824cb5fd77236b75775, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Padding: + m_Left: 0 + m_Right: 0 + m_Top: 0 + m_Bottom: 0 + m_ChildAlignment: 4 + m_Spacing: 0 + m_ChildForceExpandWidth: 1 + m_ChildForceExpandHeight: 1 + m_ChildControlWidth: 0 + m_ChildControlHeight: 0 + m_ChildScaleWidth: 0 + m_ChildScaleHeight: 0 + m_ReverseArrangement: 0 +--- !u!1 &2040560310597988826 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 2040560310597988825} + - component: {fileID: 2040560310597988830} + - component: {fileID: 2040560310597988831} + - component: {fileID: 2040560310597988824} + m_Layer: 5 + m_Name: Viewport + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &2040560310597988825 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2040560310597988826} + 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_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 2040560310511239855} + m_Father: {fileID: 2040560311541906459} + 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: -17} + m_Pivot: {x: 0, y: 1} +--- !u!222 &2040560310597988830 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2040560310597988826} + m_CullTransparentMesh: 1 +--- !u!114 &2040560310597988831 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2040560310597988826} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_Sprite: {fileID: 10917, guid: 0000000000000000f000000000000000, type: 0} + m_Type: 1 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 +--- !u!114 &2040560310597988824 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2040560310597988826} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 31a19414c41e5ae4aae2af33fee712f6, type: 3} + m_Name: + m_EditorClassIdentifier: + m_ShowMaskGraphic: 0 +--- !u!1 &2040560310713104493 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 2040560310713104492} + - component: {fileID: 2040560310713104529} + - component: {fileID: 2040560310713104530} + - component: {fileID: 2040560310713104531} + m_Layer: 5 + m_Name: MyMineBtn + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &2040560310713104492 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2040560310713104493} + 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_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 2040560312041865409} + m_Father: {fileID: 2040560311137423597} + 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: 0, y: 0} + m_SizeDelta: {x: 346, y: 76} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!222 &2040560310713104529 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2040560310713104493} + m_CullTransparentMesh: 1 +--- !u!114 &2040560310713104530 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2040560310713104493} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_Sprite: {fileID: 21300000, guid: c4b9695df5a2b0c42b2a8cec483a92e2, 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 + m_PixelsPerUnitMultiplier: 1 +--- !u!114 &2040560310713104531 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2040560310713104493} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Navigation: + m_Mode: 3 + m_WrapAround: 0 + 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_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, 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_SelectedSprite: {fileID: 0} + m_DisabledSprite: {fileID: 0} + m_AnimationTriggers: + m_NormalTrigger: Normal + m_HighlightedTrigger: Highlighted + m_PressedTrigger: Pressed + m_SelectedTrigger: Selected + m_DisabledTrigger: Disabled + m_Interactable: 1 + m_TargetGraphic: {fileID: 2040560310713104530} + m_OnClick: + m_PersistentCalls: + m_Calls: [] +--- !u!1 &2040560310801214232 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 2040560310801214239} + - component: {fileID: 2040560310801214237} + - component: {fileID: 2040560310801214238} + m_Layer: 5 + m_Name: bg + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &2040560310801214239 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2040560310801214232} + 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_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 2040560311891377675} + - {fileID: 2040560311137423597} + - {fileID: 2040560312319945261} + - {fileID: 2040560310860302067} + m_Father: {fileID: 2040560311427029884} + 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: 0} + m_SizeDelta: {x: 828, y: 928} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!222 &2040560310801214237 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2040560310801214232} + m_CullTransparentMesh: 1 +--- !u!114 &2040560310801214238 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2040560310801214232} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_Sprite: {fileID: 21300000, guid: 715148494faaa8d44815a7fcd89aad86, 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 + m_PixelsPerUnitMultiplier: 1 +--- !u!1 &2040560310860302028 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 2040560310860302067} + - component: {fileID: 2040560310860302064} + - component: {fileID: 2040560310860302065} + - component: {fileID: 2040560310860302066} + m_Layer: 5 + m_Name: CloseBtn + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &2040560310860302067 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2040560310860302028} + 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_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 2040560310801214239} + m_RootOrder: 3 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 1, y: 1} + m_AnchorMax: {x: 1, y: 1} + m_AnchoredPosition: {x: -44, y: -49} + m_SizeDelta: {x: 72, y: 72} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!222 &2040560310860302064 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2040560310860302028} + m_CullTransparentMesh: 1 +--- !u!114 &2040560310860302065 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2040560310860302028} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_Sprite: {fileID: 21300000, guid: de89cc803d252bc43920571e5f9826a3, 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 + m_PixelsPerUnitMultiplier: 1 +--- !u!114 &2040560310860302066 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2040560310860302028} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Navigation: + m_Mode: 3 + m_WrapAround: 0 + 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_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, 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_SelectedSprite: {fileID: 0} + m_DisabledSprite: {fileID: 0} + m_AnimationTriggers: + m_NormalTrigger: Normal + m_HighlightedTrigger: Highlighted + m_PressedTrigger: Pressed + m_SelectedTrigger: Selected + m_DisabledTrigger: Disabled + m_Interactable: 1 + m_TargetGraphic: {fileID: 2040560310860302065} + m_OnClick: + m_PersistentCalls: + m_Calls: [] +--- !u!1 &2040560311017107061 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 2040560311017107060} + - component: {fileID: 2040560311017107065} + - component: {fileID: 2040560311017107066} + - component: {fileID: 2040560311017107067} + m_Layer: 5 + m_Name: BuyMineBtn + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &2040560311017107060 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2040560311017107061} + 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_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 2040560310497499754} + m_Father: {fileID: 2040560311137423597} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 0, y: 0} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 346, y: 76} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!222 &2040560311017107065 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2040560311017107061} + m_CullTransparentMesh: 1 +--- !u!114 &2040560311017107066 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2040560311017107061} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_Sprite: {fileID: 21300000, guid: fd2956eacf113004893409149261867d, 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 + m_PixelsPerUnitMultiplier: 1 +--- !u!114 &2040560311017107067 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2040560311017107061} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Navigation: + m_Mode: 3 + m_WrapAround: 0 + 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_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, 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_SelectedSprite: {fileID: 0} + m_DisabledSprite: {fileID: 0} + m_AnimationTriggers: + m_NormalTrigger: Normal + m_HighlightedTrigger: Highlighted + m_PressedTrigger: Pressed + m_SelectedTrigger: Selected + m_DisabledTrigger: Disabled + m_Interactable: 1 + m_TargetGraphic: {fileID: 2040560311017107066} + m_OnClick: + m_PersistentCalls: + m_Calls: [] +--- !u!1 &2040560311137423598 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 2040560311137423597} + - component: {fileID: 2040560311137423596} + m_Layer: 5 + m_Name: Chooseobj + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &2040560311137423597 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2040560311137423598} + 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_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 2040560311017107060} + - {fileID: 2040560310713104492} + m_Father: {fileID: 2040560310801214239} + m_RootOrder: 1 + 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: 343.3474} + m_SizeDelta: {x: 828, y: 73.9601} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &2040560311137423596 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2040560311137423598} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 30649d3a9faa99c48a7b1166b86bf2a0, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Padding: + m_Left: 13 + m_Right: 0 + m_Top: 0 + m_Bottom: 0 + m_ChildAlignment: 4 + m_Spacing: -108.99 + m_ChildForceExpandWidth: 1 + m_ChildForceExpandHeight: 1 + m_ChildControlWidth: 0 + m_ChildControlHeight: 0 + m_ChildScaleWidth: 0 + m_ChildScaleHeight: 0 + m_ReverseArrangement: 0 +--- !u!1 &2040560311165196075 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 2040560311165196074} + - component: {fileID: 2040560311165196079} + - component: {fileID: 2040560311165196072} + - component: {fileID: 2040560311165196073} + m_Layer: 5 + m_Name: Viewport + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &2040560311165196074 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2040560311165196075} + 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_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 2040560311628911666} + m_Father: {fileID: 2040560311894910525} + 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: -17} + m_Pivot: {x: 0, y: 1} +--- !u!222 &2040560311165196079 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2040560311165196075} + m_CullTransparentMesh: 1 +--- !u!114 &2040560311165196072 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2040560311165196075} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_Sprite: {fileID: 10917, guid: 0000000000000000f000000000000000, type: 0} + m_Type: 1 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 +--- !u!114 &2040560311165196073 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2040560311165196075} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 31a19414c41e5ae4aae2af33fee712f6, type: 3} + m_Name: + m_EditorClassIdentifier: + m_ShowMaskGraphic: 0 +--- !u!1 &2040560311427029885 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 2040560311427029884} + - component: {fileID: 2040560311427029857} + - component: {fileID: 2040560311427029858} + - component: {fileID: 2040560311427029859} + m_Layer: 5 + m_Name: MineSelection + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &2040560311427029884 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2040560311427029885} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: -7.928255} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 2040560310801214239} + 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 &2040560311427029857 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2040560311427029885} + m_CullTransparentMesh: 1 +--- !u!114 &2040560311427029858 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2040560311427029885} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_Sprite: {fileID: 21300000, guid: c31814b8c719a96418204b01b12f8c0f, 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 + m_PixelsPerUnitMultiplier: 1 +--- !u!114 &2040560311427029859 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2040560311427029885} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: ef39f2435e2b9e24990e3c15c4d4ce48, type: 3} + m_Name: + m_EditorClassIdentifier: + Buyship: {fileID: 2040560311017107067} + Myship: {fileID: 2040560310713104531} + CloseBtn: {fileID: 2040560310860302066} + downsprite: {fileID: 21300000, guid: fd2956eacf113004893409149261867d, type: 3} + upsprite: {fileID: 21300000, guid: c4b9695df5a2b0c42b2a8cec483a92e2, type: 3} + myshipView: {fileID: 2040560311541906452} + BuyshipView: {fileID: 2040560311894910526} + Myshipitem: {fileID: 5368959926069910605, guid: 955e7e343a22ca649b09ae93e1c42fc1, type: 3} + Buyshipitem: {fileID: 8723662980731777906, guid: 8e908a94b641070488cac0750e0a66b7, type: 3} + myshipConnact: {fileID: 2040560310511239855} + BuyshipConnact: {fileID: 2040560311628911666} +--- !u!1 &2040560311541906452 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 2040560311541906459} + - component: {fileID: 2040560311541906456} + - component: {fileID: 2040560311541906457} + - component: {fileID: 2040560311541906458} + m_Layer: 5 + m_Name: MyMineView + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 0 +--- !u!224 &2040560311541906459 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2040560311541906452} + 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_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 2040560310597988825} + m_Father: {fileID: 2040560312319945261} + 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 &2040560311541906456 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2040560311541906452} + m_CullTransparentMesh: 1 +--- !u!114 &2040560311541906457 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2040560311541906452} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 0} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_Sprite: {fileID: 10907, guid: 0000000000000000f000000000000000, type: 0} + m_Type: 1 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 +--- !u!114 &2040560311541906458 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2040560311541906452} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 1aa08ab6e0800fa44ae55d278d1423e3, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Content: {fileID: 2040560310511239855} + m_Horizontal: 0 + m_Vertical: 1 + m_MovementType: 1 + m_Elasticity: 0.1 + m_Inertia: 1 + m_DecelerationRate: 0.135 + m_ScrollSensitivity: 1 + m_Viewport: {fileID: 2040560310597988825} + m_HorizontalScrollbar: {fileID: 0} + m_VerticalScrollbar: {fileID: 0} + m_HorizontalScrollbarVisibility: 2 + m_VerticalScrollbarVisibility: 2 + m_HorizontalScrollbarSpacing: -3 + m_VerticalScrollbarSpacing: -3 + m_OnValueChanged: + m_PersistentCalls: + m_Calls: [] +--- !u!1 &2040560311628911667 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 2040560311628911666} + - component: {fileID: 2040560311628911664} + - component: {fileID: 2040560311628911665} + m_Layer: 5 + m_Name: Content + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &2040560311628911666 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2040560311628911667} + 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_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 2040560311165196074} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 1, y: 1} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 0} + m_Pivot: {x: 0, y: 1} +--- !u!114 &2040560311628911664 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2040560311628911667} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 3245ec927659c4140ac4f8d17403cc18, type: 3} + m_Name: + m_EditorClassIdentifier: + m_HorizontalFit: 2 + m_VerticalFit: 2 +--- !u!114 &2040560311628911665 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2040560311628911667} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 59f8146938fff824cb5fd77236b75775, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Padding: + m_Left: 26 + m_Right: 0 + m_Top: 62 + m_Bottom: 0 + m_ChildAlignment: 1 + m_Spacing: 57.36 + m_ChildForceExpandWidth: 1 + m_ChildForceExpandHeight: 1 + m_ChildControlWidth: 0 + m_ChildControlHeight: 0 + m_ChildScaleWidth: 0 + m_ChildScaleHeight: 0 + m_ReverseArrangement: 0 +--- !u!1 &2040560311891377668 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 2040560311891377675} + - component: {fileID: 2040560311891377672} + - component: {fileID: 2040560311891377673} + - component: {fileID: 2040560311891377674} + m_Layer: 5 + m_Name: Text (Legacy) + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &2040560311891377675 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2040560311891377668} + 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_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 2040560310801214239} + 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: -17.8, y: 411} + m_SizeDelta: {x: 246.5441, y: 46.7505} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!222 &2040560311891377672 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2040560311891377668} + m_CullTransparentMesh: 1 +--- !u!114 &2040560311891377673 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2040560311891377668} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_FontData: + m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} + m_FontSize: 36 + m_FontStyle: 0 + m_BestFit: 0 + m_MinSize: 3 + m_MaxSize: 40 + m_Alignment: 4 + m_AlignByGeometry: 0 + m_RichText: 1 + m_HorizontalOverflow: 0 + m_VerticalOverflow: 0 + m_LineSpacing: 1 + m_Text: "\u77FF\u5DE5\u5E02\u573A" +--- !u!114 &2040560311891377674 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2040560311891377668} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: e19747de3f5aca642ab2be37e372fb86, type: 3} + m_Name: + m_EditorClassIdentifier: + m_EffectColor: {r: 0, g: 0, b: 0, a: 0.5} + m_EffectDistance: {x: 1, y: -1} + m_UseGraphicAlpha: 1 +--- !u!1 &2040560311894910526 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 2040560311894910525} + - component: {fileID: 2040560311894910498} + - component: {fileID: 2040560311894910499} + - component: {fileID: 2040560311894910524} + m_Layer: 5 + m_Name: BuyMineView + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &2040560311894910525 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2040560311894910526} + 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_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 2040560311165196074} + m_Father: {fileID: 2040560312319945261} + 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: 0, y: 0} + m_SizeDelta: {x: 0, y: 0} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!222 &2040560311894910498 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2040560311894910526} + m_CullTransparentMesh: 1 +--- !u!114 &2040560311894910499 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2040560311894910526} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 0} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_Sprite: {fileID: 10907, guid: 0000000000000000f000000000000000, type: 0} + m_Type: 1 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 +--- !u!114 &2040560311894910524 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2040560311894910526} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 1aa08ab6e0800fa44ae55d278d1423e3, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Content: {fileID: 2040560311628911666} + m_Horizontal: 0 + m_Vertical: 1 + m_MovementType: 1 + m_Elasticity: 0.1 + m_Inertia: 1 + m_DecelerationRate: 0.135 + m_ScrollSensitivity: 1 + m_Viewport: {fileID: 2040560311165196074} + m_HorizontalScrollbar: {fileID: 0} + m_VerticalScrollbar: {fileID: 0} + m_HorizontalScrollbarVisibility: 2 + m_VerticalScrollbarVisibility: 2 + m_HorizontalScrollbarSpacing: -3 + m_VerticalScrollbarSpacing: -3 + m_OnValueChanged: + m_PersistentCalls: + m_Calls: [] +--- !u!1 &2040560312041865410 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 2040560312041865409} + - component: {fileID: 2040560312041865415} + - component: {fileID: 2040560312041865408} + m_Layer: 5 + m_Name: Text (Legacy) + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &2040560312041865409 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2040560312041865410} + 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_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 2040560310713104492} + 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: 1.6000061, y: 0} + m_SizeDelta: {x: 0, y: 0} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!222 &2040560312041865415 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2040560312041865410} + m_CullTransparentMesh: 1 +--- !u!114 &2040560312041865408 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2040560312041865410} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_FontData: + m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} + m_FontSize: 38 + m_FontStyle: 0 + m_BestFit: 0 + m_MinSize: 0 + m_MaxSize: 42 + m_Alignment: 4 + m_AlignByGeometry: 0 + m_RichText: 1 + m_HorizontalOverflow: 0 + m_VerticalOverflow: 0 + m_LineSpacing: 1 + m_Text: "\u6211\u7684\u77FF\u5DE5" +--- !u!1 &2040560312319945262 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 2040560312319945261} + m_Layer: 5 + m_Name: GameObject + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &2040560312319945261 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2040560312319945262} + 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_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 2040560311541906459} + - {fileID: 2040560311894910525} + m_Father: {fileID: 2040560310801214239} + 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: -4.1677, y: -74.6984} + m_SizeDelta: {x: 763.3795, y: 762.1267} + m_Pivot: {x: 0.5, y: 0.5} diff --git a/meng_yao/Assets/Prefabs/ui/MineSelection.prefab.meta b/meng_yao/Assets/Prefabs/ui/MineSelection.prefab.meta new file mode 100644 index 00000000..c03c8d2f --- /dev/null +++ b/meng_yao/Assets/Prefabs/ui/MineSelection.prefab.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 128d8e441f9e4a3498635470755d4087 +PrefabImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/meng_yao/Assets/Prefabs/ui/ShipSelection.prefab b/meng_yao/Assets/Prefabs/ui/ShipSelection.prefab index b25c27b4..4a540efc 100644 --- a/meng_yao/Assets/Prefabs/ui/ShipSelection.prefab +++ b/meng_yao/Assets/Prefabs/ui/ShipSelection.prefab @@ -787,7 +787,7 @@ RectTransform: m_AnchorMin: {x: 0, y: 1} m_AnchorMax: {x: 1, y: 1} m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} + m_SizeDelta: {x: -763.3795, y: 0} m_Pivot: {x: 0, y: 1} --- !u!114 &6480420811597574756 MonoBehaviour: @@ -1369,7 +1369,7 @@ GameObject: m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 - m_IsActive: 1 + m_IsActive: 0 --- !u!224 &6480420812643749074 RectTransform: m_ObjectHideFlags: 0 diff --git a/meng_yao/Assets/Scenes/scene_Main.unity b/meng_yao/Assets/Scenes/scene_Main.unity index 8fbc59ca..00902de2 100644 --- a/meng_yao/Assets/Scenes/scene_Main.unity +++ b/meng_yao/Assets/Scenes/scene_Main.unity @@ -3234,6 +3234,7 @@ MonoBehaviour: shipNumberTextPro: {fileID: 1667584252} shipNumber: 0 MaxShipNumber: 10 + jsk: {fileID: 0} effectPrefab: {fileID: 0} OnBtnAni: {fileID: 0} FishPrice: 0 @@ -35350,7 +35351,7 @@ RectTransform: m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 1} m_AnchorMax: {x: 0, y: 1} - m_AnchoredPosition: {x: 414, y: -53.69955} + m_AnchoredPosition: {x: 414, y: -53.699463} m_SizeDelta: {x: 458.6698, y: 76.3482} m_Pivot: {x: 0.5, y: 0.5} --- !u!114 &373241424 @@ -37286,6 +37287,7 @@ MonoBehaviour: shipNumberTextPro: {fileID: 685753470} shipNumber: 0 MaxShipNumber: 10 + jsk: {fileID: 0} effectPrefab: {fileID: 0} OnBtnAni: {fileID: 0} FishPrice: 0 @@ -48126,6 +48128,7 @@ MonoBehaviour: pathsNeedTimer: 10 fishingNeedTimer: 30 restTimer: 5 + jsdbuy: {fileID: 0} goldNumerTextPro: {fileID: 1971643584} shipNumberTextPro: {fileID: 1400604628} shipNumber: 0 @@ -50405,6 +50408,7 @@ MonoBehaviour: shipNumberTextPro: {fileID: 1560771129} shipNumber: 0 MaxShipNumber: 10 + jsk: {fileID: 0} effectPrefab: {fileID: 0} OnBtnAni: {fileID: 0} FishPrice: 0 @@ -88127,9 +88131,8 @@ MonoBehaviour: - {fileID: 0} shipSelection: {fileID: 0} Canvas: {fileID: 0} - Generate1: 0 - Generate2: 0 - Generate3: 0 + itemlist: [] + mineritemlist: [] --- !u!114 &947625782 MonoBehaviour: m_ObjectHideFlags: 0 @@ -92135,6 +92138,7 @@ MonoBehaviour: pathsNeedTimer: 10 fishingNeedTimer: 30 restTimer: 5 + jsdbuy: {fileID: 0} goldNumerTextPro: {fileID: 564324688} shipNumberTextPro: {fileID: 2124790069} shipNumber: 0 @@ -134961,9 +134965,8 @@ MonoBehaviour: - {fileID: 1583471194} shipSelection: {fileID: 6480420810917194676, guid: 319669884e7e8f841923763965008c35, type: 3} Canvas: {fileID: 1429992428} - Generate1: 0 - Generate2: 0 - Generate3: 0 + itemlist: [] + mineritemlist: [] --- !u!114 &1429992425 MonoBehaviour: m_ObjectHideFlags: 0 @@ -149266,6 +149269,7 @@ MonoBehaviour: pathsNeedTimer: 10 fishingNeedTimer: 30 restTimer: 5 + jsdbuy: {fileID: 0} goldNumerTextPro: {fileID: 1070786116} shipNumberTextPro: {fileID: 1704927611} shipNumber: 0 @@ -158489,6 +158493,7 @@ MonoBehaviour: shipNumberTextPro: {fileID: 1464106938} shipNumber: 0 MaxShipNumber: 10 + jsk: {fileID: 0} effectPrefab: {fileID: 0} OnBtnAni: {fileID: 0} FishPrice: 0 @@ -181040,6 +181045,7 @@ MonoBehaviour: shipNumberTextPro: {fileID: 948930767} shipNumber: 0 MaxShipNumber: 10 + jsk: {fileID: 0} effectPrefab: {fileID: 0} OnBtnAni: {fileID: 0} FishPrice: 0 @@ -194040,9 +194046,10 @@ MonoBehaviour: - {fileID: 1921553433} - {fileID: 1676680139} - {fileID: 41060956} - Generate1: 0 - Generate2: 0 - Generate3: 0 + MineSelection: {fileID: 2040560311427029885, guid: 128d8e441f9e4a3498635470755d4087, type: 3} + Canvas: {fileID: 2055464620} + itemlist: [] + mineritemlist: [] --- !u!114 &2055464622 MonoBehaviour: m_ObjectHideFlags: 0 diff --git a/meng_yao/Assets/script/scene_Main/Scene_main_jiekou.cs b/meng_yao/Assets/script/scene_Main/Scene_main_jiekou.cs index 69a6c78a..db184e87 100644 --- a/meng_yao/Assets/script/scene_Main/Scene_main_jiekou.cs +++ b/meng_yao/Assets/script/scene_Main/Scene_main_jiekou.cs @@ -57,7 +57,7 @@ public class Scene_main_jiekou :MonoBehaviour Islandownerbidding islandownerbidding=new Islandownerbidding(); petdraw petdraw = new petdraw(); treeachievement treeachievement = new treeachievement(); - + miningActivatelist miningActivatelist = new miningActivatelist(); public static Scene_main_jiekou instance; @@ -405,4 +405,10 @@ public class Scene_main_jiekou :MonoBehaviour { return await forgingdatalist.ForgingdatalistInfo(key); } - } + + public async Task MiningActivatelists(int type)//类型 0:宝石岛 1:宝石矿场 10:金币岛 11:金币矿场 + { + return await miningActivatelist.MiningActivatelist(type); + } + +} diff --git a/meng_yao/Assets/script/scene_Main/scene/Scene_jinbikuang.cs b/meng_yao/Assets/script/scene_Main/scene/Scene_jinbikuang.cs index 0e95e530..48c6d2e5 100644 --- a/meng_yao/Assets/script/scene_Main/scene/Scene_jinbikuang.cs +++ b/meng_yao/Assets/script/scene_Main/scene/Scene_jinbikuang.cs @@ -10,6 +10,8 @@ public class Scene_jinbikuang : MonoBehaviour public List lands = new List(); + List allroom = new List(); + public GameObject Awaitmusk; void Awake() { @@ -37,6 +39,7 @@ public class Scene_jinbikuang : MonoBehaviour foreach (MinngConfigData info in infos) { roomcontroller go = lands[index].GetComponent(); + allroom.Add(go); go.RoomId = info.id; go.ActivateValue = info.price; @@ -56,4 +59,7 @@ public class Scene_jinbikuang : MonoBehaviour index++; } } + + + } diff --git a/meng_yao/Assets/script/scene_Main/ui/Buyshipitem.cs b/meng_yao/Assets/script/scene_Main/ui/Buyshipitem.cs index 0b3f2350..00f81e5b 100644 --- a/meng_yao/Assets/script/scene_Main/ui/Buyshipitem.cs +++ b/meng_yao/Assets/script/scene_Main/ui/Buyshipitem.cs @@ -2,6 +2,12 @@ using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; + +public enum minerShip +{ + miner, + ship +} public class Buyshipitem : MonoBehaviour { public Image head; @@ -11,6 +17,10 @@ public class Buyshipitem : MonoBehaviour public Text prize; public Button Buybtn; public GameObject lands; + public minerShip ship; + + public jskPanel jsk; + public jishadao_buy jishadao_Buy; void Start() { Buybtn.onClick.AddListener(BuyClick); @@ -18,7 +28,17 @@ public class Buyshipitem : MonoBehaviour void BuyClick() { - lands.GetComponent().BuyActivation(); + if (ship == minerShip.ship) + { + lands.GetComponent().jsdbuy = this.jishadao_Buy; + lands.GetComponent().BuyActivation(); + } + else + { + lands.GetComponent().jsk = this.jsk; + lands.GetComponent().BuyActivation(); + } + } // Update is called once per frame diff --git a/meng_yao/Assets/script/scene_jinshakuang/jskPanel.cs b/meng_yao/Assets/script/scene_jinshakuang/jskPanel.cs index fc40f0bf..649897aa 100644 --- a/meng_yao/Assets/script/scene_jinshakuang/jskPanel.cs +++ b/meng_yao/Assets/script/scene_jinshakuang/jskPanel.cs @@ -14,9 +14,13 @@ public class jskPanel : mount public List lands = new List(); - public bool Generate1 = false; - public bool Generate2 = false; - public bool Generate3 = false; + public GameObject MineSelection; + public Transform Canvas; + + public List itemlist = new List(); + public List mineritemlist = new List(); + + GameObject obj; public override void Awake() { instance = this; @@ -24,87 +28,95 @@ public class jskPanel : mount public async void buy_ship() { - // Cinemachine_2dCon.SetCameraContorl(false); - //Debug.LogError("禁用生成船只逻辑"); - jishadao_contorl.canClick = false; - List boxTypes = new List(); - int index = 1; + + obj = Instantiate(MineSelection, Canvas); for (int i = 0; i < 5; i++) { - boxTypes.Add(new BoxType { Name = index.ToString() + "文本", prompt = "第" + ArabicToChineseNumberConverter.ConvertToChineseNumbers(index.ToString()) + "层", Type = 4, is_required = true }); - boxTypes.Add(new BoxType { Name = "捕鱼" + index.ToString(), prompt = "挖矿" + 1,prompt2 = "矿工"+(i+1),nametext1="剩余数量:"+ (lands[i].GetComponent().MaxShipNumber - lands[i].GetComponent().shipNumber), Type = 3, goldNumerobj = lands[i].GetComponent().ActivateValue.ToString(), icon = iconS[index - 1] }); - index++; + GameObject ob = Instantiate(obj.GetComponent().Buyshipitem, obj.GetComponent().BuyshipConnact); + itemlist.Add(ob); + ob.GetComponent().head.sprite = iconS[i]; + ob.GetComponent().shipname.text = "矿工" + (i + 1); + ob.GetComponent().Layernumber.text = "第" + ArabicToChineseNumberConverter.ConvertToChineseNumbers((i + 1).ToString()) + "层"; + ob.GetComponent().Buynumber.text = "剩余数量:" + (lands[i].GetComponent().MaxShipNumber - lands[i].GetComponent().shipNumber).ToString(); + ob.GetComponent().prize.text = lands[i].GetComponent().ActivateValue.ToString(); + ob.GetComponent().lands = lands[i]; + ob.GetComponent().ship = minerShip.miner; + ob.GetComponent().jsk = this; + } + InitminerItem(); + } + + + async void InitminerItem() + { + miningActivatelistResponse response = await Scene_main_jiekou.instance.MiningActivatelists(11); + for (int i = 0; i < response.data.Length; i++) + { + GameObject item = Instantiate(obj.GetComponent().Myshipitem, obj.GetComponent().myshipConnact); + mineritemlist.Add(item); + switch (response.data[i].mining_level) + { + case 1: + item.GetComponent().head.sprite = iconS[0]; + item.GetComponent().shipname.text = "矿工1"; + item.GetComponent().Layernumber.text = "第" + ArabicToChineseNumberConverter.ConvertToChineseNumbers((1).ToString()) + "层"; + item.GetComponent().Yieldnumber.text = response.data[i].surplus_yield.ToString(); + item.GetComponent().Daynumber.text = response.data[i].surplus_count.ToString() + "天"; + break; + case 2: + item.GetComponent().head.sprite = iconS[1]; + item.GetComponent().shipname.text = "矿工2"; + item.GetComponent().Layernumber.text = "第" + ArabicToChineseNumberConverter.ConvertToChineseNumbers((2).ToString()) + "层"; + item.GetComponent().Yieldnumber.text = response.data[i].surplus_yield.ToString(); + item.GetComponent().Daynumber.text = response.data[i].surplus_count.ToString() + "天"; + break; + case 3: + item.GetComponent().head.sprite = iconS[2]; + item.GetComponent().shipname.text = "矿工3"; + item.GetComponent().Layernumber.text = "第" + ArabicToChineseNumberConverter.ConvertToChineseNumbers((3).ToString()) + "层"; + item.GetComponent().Yieldnumber.text = response.data[i].surplus_yield.ToString(); + item.GetComponent().Daynumber.text = response.data[i].surplus_count.ToString() + "天"; + break; + case 4: + item.GetComponent().head.sprite = iconS[3]; + item.GetComponent().shipname.text = "矿工4"; + item.GetComponent().Layernumber.text = "第" + ArabicToChineseNumberConverter.ConvertToChineseNumbers((4).ToString()) + "层"; + item.GetComponent().Yieldnumber.text = response.data[i].surplus_yield.ToString(); + item.GetComponent().Daynumber.text = response.data[i].surplus_count.ToString() + "天"; + break; + case 5: + item.GetComponent().head.sprite = iconS[4]; + item.GetComponent().shipname.text = "矿工5"; + item.GetComponent().Layernumber.text = "第" + ArabicToChineseNumberConverter.ConvertToChineseNumbers((5).ToString()) + "层"; + item.GetComponent().Yieldnumber.text = response.data[i].surplus_yield.ToString(); + item.GetComponent().Daynumber.text = response.data[i].surplus_count.ToString() + "天"; + break; + } + } - GameObject gameObject = add_pop_up(); - gameObject.GetComponent().minHeight = 800;//设置最低高度 - gameObject.GetComponent().setScrollMode(1);//设置滚动模式为滚动 - //gameObject.GetComponent().setScrollMode(0);//设置滚动模式为自动填充 - List gameObjects = gameObject.GetComponent().updateUI(boxTypes, "购买人才");//测试输入框回调处理 - - gameObject.GetComponent().OnEnd += () => - { - //关闭摄像头逻辑 - // Cinemachine_2dCon.SetCameraContorl(true); - jishadao_contorl.canClick = true; - }; - - gameObjects[1].GetComponent().register_click(async (BoxType boxType, int type) =>//登录确定或取消 - { - if (type == 1) - { - if (!Generate1) - { - lands[0].GetComponent().BuyActivation(); - } - } - - }); - gameObjects[3].GetComponent().register_click(async (BoxType boxType, int type) =>//登录确定或取消 - { - if (type == 1) - { - if (!Generate1) - { - - lands[1].GetComponent().BuyActivation(); - } - } - - }); - gameObjects[5].GetComponent().register_click(async (BoxType boxType, int type) =>//登录确定或取消 - { - if (type == 1) - { - if (!Generate1) - { - lands[2].GetComponent().BuyActivation(); - - } - } - - }); - gameObjects[7].GetComponent().register_click(async (BoxType boxType, int type) =>//登录确定或取消 - { - if (type == 1) - { - if (!Generate1) - { - lands[3].GetComponent().BuyActivation(); - } - } - - }); - gameObjects[9].GetComponent().register_click(async (BoxType boxType, int type) =>//登录确定或取消 - { - if (type == 1) - { - if (!Generate1) - { - lands[4].GetComponent().BuyActivation(); - } - } - }); - } + + public void UpdateminerItem() + { + foreach (GameObject bj in mineritemlist) + { + Destroy(bj); + } + mineritemlist.Clear(); + + InitminerItem(); + } + + public async void Updataitem() + { + List infos = await miner_jiekou.instance.GetMinerInfo(11); + + for (int i = 0; i < itemlist.Count; i++) + { + itemlist[i].GetComponent().Buynumber.text = "剩余数量:" + (infos[i].activate_limit - infos[i].activate_count); + } + } + + } diff --git a/meng_yao/Assets/script/scene_jinshakuang/roomcontroller.cs b/meng_yao/Assets/script/scene_jinshakuang/roomcontroller.cs index 27d6b33e..cf139bf1 100644 --- a/meng_yao/Assets/script/scene_jinshakuang/roomcontroller.cs +++ b/meng_yao/Assets/script/scene_jinshakuang/roomcontroller.cs @@ -53,6 +53,7 @@ public class roomcontroller : MonoBehaviour public int shipNumber; public int MaxShipNumber = 10; + public jskPanel jsk; public int ShipNumber { get => shipNumber; @@ -117,6 +118,9 @@ public class roomcontroller : MonoBehaviour if (await ActivationRoom()) { add_fish(); + + jsk.Updataitem(); + jsk.UpdateminerItem(); this.ShipNumber += 1; } } diff --git a/meng_yao/Assets/script/scene_jishadao/jishadao_buy.cs b/meng_yao/Assets/script/scene_jishadao/jishadao_buy.cs index a734f0bf..3d5ff341 100644 --- a/meng_yao/Assets/script/scene_jishadao/jishadao_buy.cs +++ b/meng_yao/Assets/script/scene_jishadao/jishadao_buy.cs @@ -18,9 +18,10 @@ public class jishadao_buy :mount public GameObject shipSelection; public Transform Canvas; - public bool Generate1 = false; - public bool Generate2 = false; - public bool Generate3 = false; + public List itemlist = new List(); + public List mineritemlist = new List(); + + GameObject obj; public override void Awake() { instance = this; @@ -28,78 +29,82 @@ public class jishadao_buy :mount public async void buy_ship() { - //// Cinemachine_2dCon.SetCameraContorl(false); - ////Debug.LogError("禁用生成船只逻辑"); - //jishadao_contorl.canClick = false; - //List boxTypes = new List(); + obj = Instantiate(shipSelection, Canvas); - //int index = 1; - //for (int i = 0; i < 3; i++) - //{ - // boxTypes.Add(new BoxType { Name = index.ToString() + "文本", prompt = "第" + ArabicToChineseNumberConverter.ConvertToChineseNumbers(index.ToString()) + "层", Type = 4, is_required = true }); - // boxTypes.Add(new BoxType { Name = "捕鱼" + index.ToString(), prompt = "捕鱼" + 1, prompt2 = "捕鱼船" + (i + 1), nametext1 = "剩余数量:" + (lands[i].GetComponent().MaxShipNumber - lands[i].GetComponent().shipNumber), Type = 3, goldNumerobj = lands[i].GetComponent().ActivateValue.ToString(), icon = iconS[index - 1] }); - // index++; - //} - - //GameObject gameObject = add_pop_up(); - //gameObject.GetComponent().minHeight = 800;//设置最低高度 - //gameObject.GetComponent().setScrollMode(1);//设置滚动模式为滚动 - ////gameObject.GetComponent().setScrollMode(0);//设置滚动模式为自动填充 - //List gameObjects = gameObject.GetComponent().updateUI(boxTypes, "购买人才");//测试输入框回调处理 - - //gameObject.GetComponent().OnEnd += () => - //{ - // //关闭摄像头逻辑 - // // Cinemachine_2dCon.SetCameraContorl(true); - // jishadao_contorl.canClick = true; - //}; - GameObject obj = Instantiate(shipSelection, Canvas); for (int i = 0; i < 3; i++) { - GameObject ob = Instantiate(obj.GetComponent().Buyshipitem, obj.GetComponent().BuyshipConnact); + itemlist.Add(ob); + ob.GetComponent().jishadao_Buy = this; ob.GetComponent().head.sprite = iconS[i]; ob.GetComponent().shipname.text = "捕鱼船" + (i + 1); ob.GetComponent().Layernumber.text = "第" + ArabicToChineseNumberConverter.ConvertToChineseNumbers((i + 1).ToString()) + "层"; ob.GetComponent().Buynumber.text ="剩余数量:"+ (lands[i].GetComponent().MaxShipNumber - lands[i].GetComponent().shipNumber).ToString(); ob.GetComponent().prize.text = lands[i].GetComponent().ActivateValue.ToString(); ob.GetComponent().lands = lands[i]; + ob.GetComponent().ship = minerShip.ship; } - - //gameObjects[1].GetComponent().register_click(async (BoxType boxType, int type) =>//登录确定或取消 - //{ - // if (type == 1) - // { - // if (!Generate1) - // { - // lands[0].GetComponent().BuyActivation(); - // } - // } - - //}); - //gameObjects[3].GetComponent().register_click(async (BoxType boxType, int type) =>//登录确定或取消 - //{ - // if (type == 1) - // { - // if (!Generate1) - // { - // lands[1].GetComponent().BuyActivation(); - // } - // } - - //}); - //gameObjects[5].GetComponent().register_click(async (BoxType boxType, int type) =>//登录确定或取消 - //{ - // if (type == 1) - // { - // if (!Generate1) - // { - // lands[2].GetComponent().BuyActivation(); - // } - // } - - //}); + InitminerItem(); } + + async void InitminerItem() + { + miningActivatelistResponse response = await Scene_main_jiekou.instance.MiningActivatelists(10); + for (int i = 0; i < response.data.Length; i++) + { + GameObject item = Instantiate(obj.GetComponent().Myshipitem, obj.GetComponent().myshipConnact); + mineritemlist.Add(item); + switch (response.data[i].mining_level) + { + case 1: + item.GetComponent().head.sprite = iconS[0]; + item.GetComponent().shipname.text = "捕鱼船1"; + item.GetComponent().Layernumber.text = "第" + ArabicToChineseNumberConverter.ConvertToChineseNumbers((1).ToString()) + "层"; + item.GetComponent().Yieldnumber.text = response.data[i].surplus_yield.ToString(); + item.GetComponent().Daynumber.text = response.data[i].surplus_count.ToString() + "天"; + break; + case 2: + item.GetComponent().head.sprite = iconS[1]; + item.GetComponent().shipname.text = "捕鱼船2"; + item.GetComponent().Layernumber.text = "第" + ArabicToChineseNumberConverter.ConvertToChineseNumbers((2).ToString()) + "层"; + item.GetComponent().Yieldnumber.text = response.data[i].surplus_yield.ToString(); + item.GetComponent().Daynumber.text = response.data[i].surplus_count.ToString() + "天"; + break; + case 3: + item.GetComponent().head.sprite = iconS[2]; + item.GetComponent().shipname.text = "捕鱼船3"; + item.GetComponent().Layernumber.text = "第" + ArabicToChineseNumberConverter.ConvertToChineseNumbers((3).ToString()) + "层"; + item.GetComponent().Yieldnumber.text = response.data[i].surplus_yield.ToString(); + item.GetComponent().Daynumber.text = response.data[i].surplus_count.ToString() + "天"; + break; + } + + } + + } + + public void UpdateminerItem() + { + foreach (GameObject bj in mineritemlist) + { + Destroy(bj); + } + mineritemlist.Clear(); + + InitminerItem(); + } + + public async void Updataitem() + { + List infos = await miner_jiekou.instance.GetMinerInfo(10); + + for (int i = 0; i < infos.Count; i++) + { + itemlist[i].GetComponent().Buynumber.text = "剩余数量:" + (infos[i].activate_limit - infos[i].activate_count); + } + } + + } diff --git a/meng_yao/Assets/script/scene_jishadao/jishadao_contorl.cs b/meng_yao/Assets/script/scene_jishadao/jishadao_contorl.cs index a207a867..f3df3da3 100644 --- a/meng_yao/Assets/script/scene_jishadao/jishadao_contorl.cs +++ b/meng_yao/Assets/script/scene_jishadao/jishadao_contorl.cs @@ -45,6 +45,8 @@ public class jishadao_contorl : MonoBehaviour public float restTimer = 5f; + public jishadao_buy jsdbuy; + [Header("显示金币数量")] public Text goldNumerTextPro; [Header("显示船只数量")] @@ -111,6 +113,9 @@ public class jishadao_contorl : MonoBehaviour if (await ActivationRoom()) { add_fish(); + jsdbuy.Updataitem(); + jsdbuy.UpdateminerItem(); + scene_jingshadao.instance.updatanumber(); } } diff --git a/meng_yao/Assets/script/serveTestScript/miningModule/miningActivatelist.cs b/meng_yao/Assets/script/serveTestScript/miningModule/miningActivatelist.cs new file mode 100644 index 00000000..6e16dc6a --- /dev/null +++ b/meng_yao/Assets/script/serveTestScript/miningModule/miningActivatelist.cs @@ -0,0 +1,51 @@ +using Newtonsoft.Json; +using System.Collections; +using System.Collections.Generic; +using System.Threading.Tasks; +using UnityEngine; + +public class miningActivatelist : MonoBehaviour +{ + public Dictionary CreateHeaders() + { + if (string.IsNullOrEmpty(MyGlobal.global.loginResponse.Data.access_token)) + { + Debug.LogWarning("尝试创建请求头时,token 未设置。"); + return new Dictionary(); + } + return new Dictionary + { + + { "Authorization","Bearer "+MyGlobal.global.loginResponse.Data.access_token }, + { "client-info", "{\"platform\":\"ios\",\"phone_product\":\"apple\",\"phone_model\":\"iPhone_8\",\"system_version\":\"12.0\",\"screen_size\":\"750*1334\",\"device_no\":\"e3e277810fff9d955ebdd7037eff51a8\",\"version\":\"1.0.0\"}" } + }; + } + + public async Task MiningActivatelist(int type)//类型 0:宝石岛 1:宝石矿场 10:金币岛 11:金币矿场 + { + string response = await myWeb.SendRequest(myWeb.URL + "/api/mining/activate_list?type=" + type, "GET", "{}", CreateHeaders()); + Debug.Log("矿场激活列表" + response); + miningActivatelistResponse miningActivatelistResponse = JsonConvert.DeserializeObject(response); + return miningActivatelistResponse; + } + +} + + +[System.Serializable] +public class miningActivatelistData +{ + public int id; + public int mining_id; + public string mining_name; + public int mining_level; + public int mining_type; + public int surplus_count; + public float surplus_yield; +} + +[System.Serializable] +public class miningActivatelistResponse:myResponse +{ + public miningActivatelistData[] data; +} \ No newline at end of file diff --git a/meng_yao/Assets/script/serveTestScript/miningModule/miningActivatelist.cs.meta b/meng_yao/Assets/script/serveTestScript/miningModule/miningActivatelist.cs.meta new file mode 100644 index 00000000..e2663ffc --- /dev/null +++ b/meng_yao/Assets/script/serveTestScript/miningModule/miningActivatelist.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 002d2a46d16578d43b563973fb28263a +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: