Merge branch 'main' of http://192.168.2.19:3000/shurongsen/Cute_demon_attacks
# Conflicts: # meng_yao/Assets/communal/ugui/input_box_pop_up_window/input_box_pop_up_window.cs
This commit is contained in:
commit
9d363e3c19
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
1222
meng_yao/Assets/Resources/preform/gui/Hero_Ui 1.prefab
Normal file
1222
meng_yao/Assets/Resources/preform/gui/Hero_Ui 1.prefab
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 0a5155c5d22bb59409e9e4f3418f6a8c
|
||||||
|
PrefabImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -864,10 +864,11 @@ MonoBehaviour:
|
|||||||
Type: 0
|
Type: 0
|
||||||
icon: {fileID: 0}
|
icon: {fileID: 0}
|
||||||
details:
|
details:
|
||||||
|
button_0_text:
|
||||||
|
button_1_text:
|
||||||
textobj: {fileID: 0}
|
textobj: {fileID: 0}
|
||||||
promptobj: {fileID: 5616551305478333436}
|
promptobj: {fileID: 5616551305478333436}
|
||||||
contentobj: {fileID: 0}
|
contentobj: {fileID: 0}
|
||||||
details: {fileID: 5616551307087571641}
|
|
||||||
--- !u!1 &5616551307087571641
|
--- !u!1 &5616551307087571641
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
@ -236,10 +236,11 @@ MonoBehaviour:
|
|||||||
Type: 0
|
Type: 0
|
||||||
icon: {fileID: 0}
|
icon: {fileID: 0}
|
||||||
details:
|
details:
|
||||||
|
button_0_text:
|
||||||
|
button_1_text:
|
||||||
textobj: {fileID: 0}
|
textobj: {fileID: 0}
|
||||||
promptobj: {fileID: 0}
|
promptobj: {fileID: 0}
|
||||||
contentobj: {fileID: 0}
|
contentobj: {fileID: 0}
|
||||||
details: {fileID: 0}
|
|
||||||
--- !u!1 &2919302046862792451
|
--- !u!1 &2919302046862792451
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
338
meng_yao/Assets/Resources/preform/gui/item_button_sure.prefab
Normal file
338
meng_yao/Assets/Resources/preform/gui/item_button_sure.prefab
Normal file
@ -0,0 +1,338 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!1 &1102998763492845764
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 1102998763492845767}
|
||||||
|
- component: {fileID: 1102998763492845761}
|
||||||
|
- component: {fileID: 1102998763492845766}
|
||||||
|
- component: {fileID: 1505933153374624641}
|
||||||
|
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 &1102998763492845767
|
||||||
|
RectTransform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1102998763492845764}
|
||||||
|
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: 1102998763759666645}
|
||||||
|
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 &1102998763492845761
|
||||||
|
CanvasRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1102998763492845764}
|
||||||
|
m_CullTransparentMesh: 1
|
||||||
|
--- !u!114 &1102998763492845766
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1102998763492845764}
|
||||||
|
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: 50
|
||||||
|
m_Alignment: 4
|
||||||
|
m_AlignByGeometry: 0
|
||||||
|
m_RichText: 1
|
||||||
|
m_HorizontalOverflow: 0
|
||||||
|
m_VerticalOverflow: 0
|
||||||
|
m_LineSpacing: 1
|
||||||
|
m_Text: "\u786E\u8BA4"
|
||||||
|
--- !u!114 &1505933153374624641
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1102998763492845764}
|
||||||
|
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 &1102998763759666634
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 1102998763759666645}
|
||||||
|
- component: {fileID: 1102998763759666646}
|
||||||
|
- component: {fileID: 1102998763759666647}
|
||||||
|
- component: {fileID: 1102998763759666644}
|
||||||
|
m_Layer: 5
|
||||||
|
m_Name: Button (Legacy) (1)
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!224 &1102998763759666645
|
||||||
|
RectTransform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1102998763759666634}
|
||||||
|
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: 1102998763492845767}
|
||||||
|
m_Father: {fileID: 1102998764138234808}
|
||||||
|
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: 212, y: 95}
|
||||||
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
|
--- !u!222 &1102998763759666646
|
||||||
|
CanvasRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1102998763759666634}
|
||||||
|
m_CullTransparentMesh: 1
|
||||||
|
--- !u!114 &1102998763759666647
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1102998763759666634}
|
||||||
|
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: 70a088c2b9ec1f64686b6962c5b01d66, 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 &1102998763759666644
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1102998763759666634}
|
||||||
|
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: 1102998763759666647}
|
||||||
|
m_OnClick:
|
||||||
|
m_PersistentCalls:
|
||||||
|
m_Calls:
|
||||||
|
- m_Target: {fileID: 849661935857211320}
|
||||||
|
m_TargetAssemblyTypeName: input_box_pop_up_window_item, Assembly-CSharp
|
||||||
|
m_MethodName: onClikeAsync
|
||||||
|
m_Mode: 3
|
||||||
|
m_Arguments:
|
||||||
|
m_ObjectArgument: {fileID: 0}
|
||||||
|
m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine
|
||||||
|
m_IntArgument: 1
|
||||||
|
m_FloatArgument: 0
|
||||||
|
m_StringArgument:
|
||||||
|
m_BoolArgument: 0
|
||||||
|
m_CallState: 1
|
||||||
|
--- !u!1 &1102998764138234809
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 1102998764138234808}
|
||||||
|
- component: {fileID: 1102998764138234811}
|
||||||
|
- component: {fileID: 1102998764138234810}
|
||||||
|
- component: {fileID: 849661935857211320}
|
||||||
|
m_Layer: 5
|
||||||
|
m_Name: item_button_sure
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!224 &1102998764138234808
|
||||||
|
RectTransform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1102998764138234809}
|
||||||
|
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: 1102998763759666645}
|
||||||
|
m_Father: {fileID: 0}
|
||||||
|
m_RootOrder: 0
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
m_AnchorMin: {x: 0, y: 1}
|
||||||
|
m_AnchorMax: {x: 0, y: 1}
|
||||||
|
m_AnchoredPosition: {x: 399.425, y: -937.4969}
|
||||||
|
m_SizeDelta: {x: 212, y: 0}
|
||||||
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
|
--- !u!114 &1102998764138234811
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1102998764138234809}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 30649d3a9faa99c48a7b1166b86bf2a0, 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: 106
|
||||||
|
m_ChildForceExpandWidth: 1
|
||||||
|
m_ChildForceExpandHeight: 1
|
||||||
|
m_ChildControlWidth: 0
|
||||||
|
m_ChildControlHeight: 0
|
||||||
|
m_ChildScaleWidth: 0
|
||||||
|
m_ChildScaleHeight: 0
|
||||||
|
m_ReverseArrangement: 0
|
||||||
|
--- !u!114 &1102998764138234810
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1102998764138234809}
|
||||||
|
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 &849661935857211320
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1102998764138234809}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: d5f05f4b390610b45b78dd10cb4e88c0, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
boxType:
|
||||||
|
Name:
|
||||||
|
textName:
|
||||||
|
prompt:
|
||||||
|
is_required: 0
|
||||||
|
content:
|
||||||
|
Type: 0
|
||||||
|
icon: {fileID: 0}
|
||||||
|
details:
|
||||||
|
button_0_text:
|
||||||
|
button_1_text:
|
||||||
|
textobj: {fileID: 0}
|
||||||
|
promptobj: {fileID: 0}
|
||||||
|
contentobj: {fileID: 0}
|
@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: a574b193d3d29444a812178400b0820d
|
||||||
|
PrefabImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
601
meng_yao/Assets/Resources/preform/gui/text_content.prefab
Normal file
601
meng_yao/Assets/Resources/preform/gui/text_content.prefab
Normal file
File diff suppressed because one or more lines are too long
@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: cca5e57b75771fd418bf3aa835bd7546
|
||||||
|
PrefabImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -4930,6 +4930,7 @@ GameObject:
|
|||||||
- component: {fileID: 677323642}
|
- component: {fileID: 677323642}
|
||||||
- component: {fileID: 677323644}
|
- component: {fileID: 677323644}
|
||||||
- component: {fileID: 677323643}
|
- component: {fileID: 677323643}
|
||||||
|
- component: {fileID: 677323645}
|
||||||
m_Layer: 5
|
m_Layer: 5
|
||||||
m_Name: Text (Legacy)
|
m_Name: Text (Legacy)
|
||||||
m_TagString: Untagged
|
m_TagString: Untagged
|
||||||
@ -4970,7 +4971,7 @@ MonoBehaviour:
|
|||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
m_Material: {fileID: 0}
|
m_Material: {fileID: 0}
|
||||||
m_Color: {r: 0.2924528, g: 0.2924528, b: 0.2924528, a: 1}
|
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||||
m_RaycastTarget: 1
|
m_RaycastTarget: 1
|
||||||
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||||
m_Maskable: 1
|
m_Maskable: 1
|
||||||
@ -4978,7 +4979,7 @@ MonoBehaviour:
|
|||||||
m_PersistentCalls:
|
m_PersistentCalls:
|
||||||
m_Calls: []
|
m_Calls: []
|
||||||
m_FontData:
|
m_FontData:
|
||||||
m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
|
m_Font: {fileID: 12800000, guid: e3265ab4bf004d28a9537516768c1c75, type: 3}
|
||||||
m_FontSize: 30
|
m_FontSize: 30
|
||||||
m_FontStyle: 0
|
m_FontStyle: 0
|
||||||
m_BestFit: 0
|
m_BestFit: 0
|
||||||
@ -4999,6 +5000,21 @@ CanvasRenderer:
|
|||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
m_GameObject: {fileID: 677323641}
|
m_GameObject: {fileID: 677323641}
|
||||||
m_CullTransparentMesh: 1
|
m_CullTransparentMesh: 1
|
||||||
|
--- !u!114 &677323645
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 677323641}
|
||||||
|
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: 1}
|
||||||
|
m_EffectDistance: {x: 1, y: -1}
|
||||||
|
m_UseGraphicAlpha: 1
|
||||||
--- !u!1 &682577002
|
--- !u!1 &682577002
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,11 +1,11 @@
|
|||||||
using System.Collections;
|
using System.Collections;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using System.Threading.Tasks;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
[System.Serializable]
|
[System.Serializable]
|
||||||
public struct Register
|
public struct Register
|
||||||
{
|
{
|
||||||
public string Phone;
|
public string Phone;
|
||||||
public string Code;
|
|
||||||
}
|
}
|
||||||
public class mount : MonoBehaviour
|
public class mount : MonoBehaviour
|
||||||
{
|
{
|
||||||
@ -20,6 +20,17 @@ public class mount : MonoBehaviour
|
|||||||
//mountitem.login_screen();
|
//mountitem.login_screen();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
private async void Start()
|
||||||
|
{
|
||||||
|
Register register = new Register();
|
||||||
|
register.Phone = "13667637952";
|
||||||
|
string jsonString = JsonUtility.ToJson(register);
|
||||||
|
Debug.Log(jsonString);
|
||||||
|
string response_1 = await web.SendRequest("http://47.109.133.52/Player/Login", "POST", jsonString);
|
||||||
|
Debug.Log(response_1);
|
||||||
|
string response_2 = await web.SendRequest("http://47.109.133.52/MinerElf/GetList", "POST");
|
||||||
|
Debug.Log(response_2);
|
||||||
|
}
|
||||||
public GameObject add_pop_up(bool is_force = false)//Ìí¼Óµ¯´°
|
public GameObject add_pop_up(bool is_force = false)//Ìí¼Óµ¯´°
|
||||||
{
|
{
|
||||||
GameObject prefab = Resources.Load<GameObject>("preform/gui/pop_up_ui");
|
GameObject prefab = Resources.Load<GameObject>("preform/gui/pop_up_ui");
|
||||||
@ -57,14 +68,13 @@ public class mount : MonoBehaviour
|
|||||||
else if (type == 1){
|
else if (type == 1){
|
||||||
Register register = new Register();
|
Register register = new Register();
|
||||||
register.Phone = boxTypes[0].content;
|
register.Phone = boxTypes[0].content;
|
||||||
register.Code = boxTypes[0].content;
|
//register.Code = boxTypes[0].content;
|
||||||
string jsonString = JsonUtility.ToJson(register);
|
string jsonString = JsonUtility.ToJson(register);
|
||||||
string response = await web.SendRequest("http://47.109.133.52/Player/Register", "POST", jsonString);
|
string response = await web.SendRequest("http://47.109.133.52/Player/Register", "POST", jsonString);
|
||||||
Debug.Log(response);
|
Debug.Log(response);
|
||||||
|
|
||||||
|
|
||||||
//string response = await web.SendRequest("http://47.109.133.52/MinerElf/GetList", "POST");
|
|
||||||
//Debug.Log(response);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -9,12 +9,10 @@ public class input_box_pop_up_window_item : MonoBehaviour
|
|||||||
public GameObject textobj;
|
public GameObject textobj;
|
||||||
public GameObject promptobj;
|
public GameObject promptobj;
|
||||||
public GameObject contentobj;
|
public GameObject contentobj;
|
||||||
public GameObject details;
|
|
||||||
public delegate void OnClikeWT(BoxType boxType, int type);//事件函数执行委托回调
|
public delegate void OnClikeWT(BoxType boxType, int type);//事件函数执行委托回调
|
||||||
public event OnClikeWT OnClike;//点击事件
|
public event OnClikeWT OnClike;//点击事件
|
||||||
public void onClikeAsync(int type = 0)//点击事件
|
public void onClikeAsync(int type = 0)//点击事件
|
||||||
{
|
{
|
||||||
Debug.Log("---1111");
|
|
||||||
OnClike?.Invoke(boxType, type);
|
OnClike?.Invoke(boxType, type);
|
||||||
}
|
}
|
||||||
public void register_click(OnClikeWT onClikeWT)
|
public void register_click(OnClikeWT onClikeWT)
|
||||||
@ -26,7 +24,6 @@ public class input_box_pop_up_window_item : MonoBehaviour
|
|||||||
boxType = my_boxType;
|
boxType = my_boxType;
|
||||||
if (textobj != null) textobj.GetComponent<Text>().text = boxType.textName;
|
if (textobj != null) textobj.GetComponent<Text>().text = boxType.textName;
|
||||||
if (promptobj != null) promptobj.GetComponent<Text>().text = boxType.prompt;
|
if (promptobj != null) promptobj.GetComponent<Text>().text = boxType.prompt;
|
||||||
if (details != null) details.GetComponent<Text>().text = boxType.details;
|
|
||||||
}
|
}
|
||||||
private void Update()
|
private void Update()
|
||||||
{
|
{
|
||||||
|
@ -7,23 +7,38 @@ using UnityEngine.Networking;
|
|||||||
|
|
||||||
public class web : MonoBehaviour
|
public class web : MonoBehaviour
|
||||||
{
|
{
|
||||||
public static async Task<string> SendRequest(string url, string method = "GET", string jsonData = null)
|
// 存储服务器返回的Cookie
|
||||||
|
private static Dictionary<string, string> cookieJar = new Dictionary<string, string>();
|
||||||
|
|
||||||
|
public static async Task<string> SendRequest(string url, string method = "GET", string jsonData = "{}")
|
||||||
{
|
{
|
||||||
|
|
||||||
using (UnityWebRequest request = new UnityWebRequest(url, method))
|
using (UnityWebRequest request = new UnityWebRequest(url, method))
|
||||||
{
|
{
|
||||||
|
// 设置下载处理器
|
||||||
|
request.downloadHandler = new DownloadHandlerBuffer();
|
||||||
|
|
||||||
|
// 如果是POST请求,设置请求体
|
||||||
if (method == "POST" && jsonData != null)
|
if (method == "POST" && jsonData != null)
|
||||||
{
|
{
|
||||||
byte[] bodyRaw = Encoding.UTF8.GetBytes(jsonData);
|
byte[] bodyRaw = Encoding.UTF8.GetBytes(jsonData);
|
||||||
request.uploadHandler = new UploadHandlerRaw(bodyRaw);
|
request.uploadHandler = new UploadHandlerRaw(bodyRaw);
|
||||||
request.downloadHandler = new DownloadHandlerBuffer();
|
|
||||||
request.SetRequestHeader("Content-Type", "application/json");
|
request.SetRequestHeader("Content-Type", "application/json");
|
||||||
}
|
}
|
||||||
else
|
|
||||||
|
// 设置已存储的 Cookie
|
||||||
|
if (cookieJar.Count > 0)
|
||||||
{
|
{
|
||||||
request.downloadHandler = new DownloadHandlerBuffer();
|
string cookieHeader = "";
|
||||||
|
foreach (var cookie in cookieJar)
|
||||||
|
{
|
||||||
|
cookieHeader += $"{cookie.Key}={cookie.Value}; ";
|
||||||
|
|
||||||
|
}
|
||||||
|
request.SetRequestHeader("Cookie", cookieHeader);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Send the request and await the response
|
// 发送请求并等待响应
|
||||||
var operation = request.SendWebRequest();
|
var operation = request.SendWebRequest();
|
||||||
while (!operation.isDone)
|
while (!operation.isDone)
|
||||||
await Task.Yield();
|
await Task.Yield();
|
||||||
@ -35,6 +50,25 @@ public class web : MonoBehaviour
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
// 处理返回的Cookie
|
||||||
|
string setCookieHeader;
|
||||||
|
if (request.GetResponseHeaders().TryGetValue("Set-Cookie", out setCookieHeader))
|
||||||
|
{
|
||||||
|
string[] cookies = setCookieHeader.Split(';');
|
||||||
|
foreach (var cookie in cookies)
|
||||||
|
{
|
||||||
|
var cookieParts = cookie.Split('=');
|
||||||
|
if (cookieParts.Length == 2)
|
||||||
|
{
|
||||||
|
string key = cookieParts[0].Trim();
|
||||||
|
string value = cookieParts[1].Trim();
|
||||||
|
cookieJar[key] = value;
|
||||||
|
Debug.Log(value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// 返回响应内容
|
||||||
return request.downloadHandler.text;
|
return request.downloadHandler.text;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
8
meng_yao/Assets/script/Panel.meta
Normal file
8
meng_yao/Assets/script/Panel.meta
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 8c3c1537e81a85e44bd8ef050514d68c
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
94
meng_yao/Assets/script/Panel/ShopPanel.cs
Normal file
94
meng_yao/Assets/script/Panel/ShopPanel.cs
Normal file
@ -0,0 +1,94 @@
|
|||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
using UnityEngine.UI;
|
||||||
|
|
||||||
|
public class ShopPanel : MonoBehaviour
|
||||||
|
{
|
||||||
|
|
||||||
|
public Button HeroBtn;
|
||||||
|
public Button WeaponsBtn;
|
||||||
|
public Button SeWeaponsBtn;
|
||||||
|
public Button PickupBtn;
|
||||||
|
|
||||||
|
public GameObject HeroContent;
|
||||||
|
public GameObject WeaponsContent;
|
||||||
|
public GameObject SeWeaponsContent;
|
||||||
|
public GameObject PickupContent;
|
||||||
|
|
||||||
|
|
||||||
|
public GameObject HightlightImage;//°´Å¥¸ßÁÁ
|
||||||
|
|
||||||
|
public List<GameObject> ContentList;
|
||||||
|
void Start()
|
||||||
|
{
|
||||||
|
HeroBtn.onClick.AddListener(OnClickHeroBtn);
|
||||||
|
WeaponsBtn.onClick.AddListener(OnClickWeaponsBtn);
|
||||||
|
SeWeaponsBtn.onClick.AddListener(OnClickSeWeaponsBtn);
|
||||||
|
PickupBtn.onClick.AddListener(OnClickPickupBtn);
|
||||||
|
|
||||||
|
BuildContentList();
|
||||||
|
ShowContent(ContentList, HeroContent);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void BuildContentList()
|
||||||
|
{
|
||||||
|
ContentList = new List<GameObject>();
|
||||||
|
ContentList.Add(HeroContent);
|
||||||
|
ContentList.Add(WeaponsContent);
|
||||||
|
ContentList.Add(SeWeaponsContent);
|
||||||
|
ContentList.Add(PickupContent);
|
||||||
|
}
|
||||||
|
|
||||||
|
void ShowContent(List<GameObject> contentList,GameObject current)
|
||||||
|
{
|
||||||
|
foreach (GameObject content in contentList)
|
||||||
|
{
|
||||||
|
if (content==current)
|
||||||
|
{
|
||||||
|
content.SetActive(true);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
content.SetActive(false);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void SetChild(GameObject parent,GameObject child,int index=0)
|
||||||
|
{
|
||||||
|
child.transform.SetParent(parent.transform);
|
||||||
|
child.transform.SetSiblingIndex(0);
|
||||||
|
child.transform.localPosition = Vector3.zero;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void OnClickHeroBtn()
|
||||||
|
{
|
||||||
|
//ShowContent(ContentList, HeroContent);
|
||||||
|
SetChild(HeroBtn.gameObject, HightlightImage);
|
||||||
|
}
|
||||||
|
|
||||||
|
void OnClickWeaponsBtn()
|
||||||
|
{
|
||||||
|
//ShowContent(ContentList, WeaponsContent);
|
||||||
|
SetChild(WeaponsBtn.gameObject, HightlightImage);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void OnClickSeWeaponsBtn()
|
||||||
|
{
|
||||||
|
//ShowContent(ContentList, SeWeaponsContent);
|
||||||
|
SetChild(SeWeaponsBtn.gameObject, HightlightImage);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void OnClickPickupBtn()
|
||||||
|
{
|
||||||
|
//ShowContent(ContentList, PickupContent);
|
||||||
|
SetChild(PickupBtn.gameObject, HightlightImage);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
11
meng_yao/Assets/script/Panel/ShopPanel.cs.meta
Normal file
11
meng_yao/Assets/script/Panel/ShopPanel.cs.meta
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: af0ac38c2e5438c4cb3bd92840609d5d
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
Loading…
Reference in New Issue
Block a user