From 18c29931b2349900f8bfd3c0ac96e12716c7803d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E5=8F=B7=E6=95=AC?= <153802103@qq.com> Date: Mon, 23 Dec 2024 00:21:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8C=89=E9=92=AE=E5=8A=A8=E7=94=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/Scenes/LoadScene.unity | 1067 +++++++++++++++++++++++++++++++- Assets/Scripts/Anim.cs | 81 +++ Assets/Scripts/Anim.cs.meta | 11 + Assets/Scripts/UI/Login.cs | 14 +- Assets/Scripts/UI/MainPanel.cs | 62 +- Assets/Scripts/UI/Protocol.cs | 33 +- Assets/Scripts/UI/Register.cs | 14 +- Assets/Scripts/UI/Role.cs | 26 +- 8 files changed, 1278 insertions(+), 30 deletions(-) create mode 100644 Assets/Scripts/Anim.cs create mode 100644 Assets/Scripts/Anim.cs.meta diff --git a/Assets/Scenes/LoadScene.unity b/Assets/Scenes/LoadScene.unity index 81388b3..a162a4e 100644 --- a/Assets/Scenes/LoadScene.unity +++ b/Assets/Scenes/LoadScene.unity @@ -122,6 +122,321 @@ NavMeshSettings: debug: m_Flags: 0 m_NavMeshData: {fileID: 0} +--- !u!1 &129086284 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 129086285} + - component: {fileID: 129086287} + - component: {fileID: 129086286} + m_Layer: 5 + m_Name: Checkmark + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &129086285 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 129086284} + 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: 1242219864} + 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: 20, y: 20} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &129086286 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 129086284} + 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: 81b2fdde67a59af4099aecd2743b9e87, 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!222 &129086287 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 129086284} + m_CullTransparentMesh: 1 +--- !u!1 &267906986 stripped +GameObject: + m_CorrespondingSourceObject: {fileID: 5913284454080895486, guid: 427a01f0d31a9fd4e827b53b77aff0c6, type: 3} + m_PrefabInstance: {fileID: 506345625722630290} + m_PrefabAsset: {fileID: 0} +--- !u!114 &267906988 stripped +MonoBehaviour: + m_CorrespondingSourceObject: {fileID: 174620060637125477, guid: 427a01f0d31a9fd4e827b53b77aff0c6, type: 3} + m_PrefabInstance: {fileID: 506345625722630290} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 267906986} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: +--- !u!114 &267906990 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 267906986} + 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: 267906988} + m_OnClick: + m_PersistentCalls: + m_Calls: [] +--- !u!1 &282076591 stripped +GameObject: + m_CorrespondingSourceObject: {fileID: 6448317243723240111, guid: 427a01f0d31a9fd4e827b53b77aff0c6, type: 3} + m_PrefabInstance: {fileID: 506345625722630290} + m_PrefabAsset: {fileID: 0} +--- !u!114 &282076593 stripped +MonoBehaviour: + m_CorrespondingSourceObject: {fileID: 7874063438572854187, guid: 427a01f0d31a9fd4e827b53b77aff0c6, type: 3} + m_PrefabInstance: {fileID: 506345625722630290} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 282076591} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: +--- !u!114 &282076595 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 282076591} + 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: 282076593} + m_OnClick: + m_PersistentCalls: + m_Calls: [] +--- !u!1 &407910684 stripped +GameObject: + m_CorrespondingSourceObject: {fileID: 1800459440402032757, guid: 427a01f0d31a9fd4e827b53b77aff0c6, type: 3} + m_PrefabInstance: {fileID: 506345625722630290} + m_PrefabAsset: {fileID: 0} +--- !u!114 &407910686 stripped +MonoBehaviour: + m_CorrespondingSourceObject: {fileID: 6079343036386950817, guid: 427a01f0d31a9fd4e827b53b77aff0c6, type: 3} + m_PrefabInstance: {fileID: 506345625722630290} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 407910684} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: +--- !u!114 &407910688 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 407910684} + 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: 407910686} + m_OnClick: + m_PersistentCalls: + m_Calls: [] +--- !u!1 &428089383 stripped +GameObject: + m_CorrespondingSourceObject: {fileID: 3948847535443682207, guid: 427a01f0d31a9fd4e827b53b77aff0c6, type: 3} + m_PrefabInstance: {fileID: 506345625722630290} + m_PrefabAsset: {fileID: 0} +--- !u!114 &428089385 stripped +MonoBehaviour: + m_CorrespondingSourceObject: {fileID: 547731190410354032, guid: 427a01f0d31a9fd4e827b53b77aff0c6, type: 3} + m_PrefabInstance: {fileID: 506345625722630290} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 428089383} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: +--- !u!114 &428089387 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 428089383} + 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: 428089385} + m_OnClick: + m_PersistentCalls: + m_Calls: [] --- !u!1 &705507993 GameObject: m_ObjectHideFlags: 0 @@ -216,6 +531,71 @@ Transform: m_Children: [] m_Father: {fileID: 0} m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0} +--- !u!1 &750982626 stripped +GameObject: + m_CorrespondingSourceObject: {fileID: 1592844008974013320, guid: 427a01f0d31a9fd4e827b53b77aff0c6, type: 3} + m_PrefabInstance: {fileID: 506345625722630290} + m_PrefabAsset: {fileID: 0} +--- !u!114 &750982628 stripped +MonoBehaviour: + m_CorrespondingSourceObject: {fileID: 8506690500901179102, guid: 427a01f0d31a9fd4e827b53b77aff0c6, type: 3} + m_PrefabInstance: {fileID: 506345625722630290} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 750982626} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: +--- !u!114 &750982630 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 750982626} + 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: 750982628} + m_OnClick: + m_PersistentCalls: + m_Calls: [] +--- !u!224 &944948992 stripped +RectTransform: + m_CorrespondingSourceObject: {fileID: 1117870559965883902, guid: 3e6f026470f73c344b2045b3482245e5, type: 3} + m_PrefabInstance: {fileID: 110195974451652481} + m_PrefabAsset: {fileID: 0} --- !u!1 &963194225 GameObject: m_ObjectHideFlags: 0 @@ -308,6 +688,592 @@ Transform: m_Children: [] m_Father: {fileID: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1 &1175214618 stripped +GameObject: + m_CorrespondingSourceObject: {fileID: 2605955465838279898, guid: 427a01f0d31a9fd4e827b53b77aff0c6, type: 3} + m_PrefabInstance: {fileID: 506345625722630290} + m_PrefabAsset: {fileID: 0} +--- !u!114 &1175214620 stripped +MonoBehaviour: + m_CorrespondingSourceObject: {fileID: 2921735455974538249, guid: 427a01f0d31a9fd4e827b53b77aff0c6, type: 3} + m_PrefabInstance: {fileID: 506345625722630290} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1175214618} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: +--- !u!114 &1175214622 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1175214618} + 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: 1175214620} + m_OnClick: + m_PersistentCalls: + m_Calls: [] +--- !u!1 &1242219863 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1242219864} + - component: {fileID: 1242219866} + - component: {fileID: 1242219865} + m_Layer: 5 + m_Name: Background + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &1242219864 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1242219863} + 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: 129086285} + m_Father: {fileID: 1308798651} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 10, y: -15.1} + m_SizeDelta: {x: 20, y: 20} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &1242219865 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1242219863} + 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: 10905, 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!222 &1242219866 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1242219863} + m_CullTransparentMesh: 1 +--- !u!1 &1263177441 stripped +GameObject: + m_CorrespondingSourceObject: {fileID: 1928988597050692352, guid: 427a01f0d31a9fd4e827b53b77aff0c6, type: 3} + m_PrefabInstance: {fileID: 506345625722630290} + m_PrefabAsset: {fileID: 0} +--- !u!114 &1263177443 stripped +MonoBehaviour: + m_CorrespondingSourceObject: {fileID: 6709435685782929510, guid: 427a01f0d31a9fd4e827b53b77aff0c6, type: 3} + m_PrefabInstance: {fileID: 506345625722630290} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1263177441} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: +--- !u!114 &1263177445 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1263177441} + 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: 1263177443} + m_OnClick: + m_PersistentCalls: + m_Calls: [] +--- !u!1 &1308798650 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1308798651} + - component: {fileID: 1308798652} + m_Layer: 5 + m_Name: Toggle + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &1308798651 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1308798650} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1.8751, y: 1.8751, z: 1.8751} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 1242219864} + - {fileID: 1361301897} + m_Father: {fileID: 944948992} + 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: 29, y: -94} + m_SizeDelta: {x: 160, y: 30} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &1308798652 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1308798650} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 9085046f02f69544eb97fd06b6048fe2, 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: 1242219865} + toggleTransition: 1 + graphic: {fileID: 129086286} + m_Group: {fileID: 0} + onValueChanged: + m_PersistentCalls: + m_Calls: [] + m_IsOn: 0 +--- !u!1 &1361301896 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1361301897} + - component: {fileID: 1361301900} + - component: {fileID: 1361301899} + - component: {fileID: 1361301898} + m_Layer: 5 + m_Name: Label + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &1361301897 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1361301896} + 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: 1308798651} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 1, y: 1} + m_AnchoredPosition: {x: -14.045107, y: 0.5} + m_SizeDelta: {x: -71.0902, y: -1} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &1361301898 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1361301896} + 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: 1361301899} + m_OnClick: + m_PersistentCalls: + m_Calls: [] +--- !u!114 &1361301899 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1361301896} + 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: 14 + m_FontStyle: 0 + m_BestFit: 0 + m_MinSize: 10 + m_MaxSize: 40 + m_Alignment: 4 + m_AlignByGeometry: 0 + m_RichText: 1 + m_HorizontalOverflow: 0 + m_VerticalOverflow: 0 + m_LineSpacing: 1 + m_Text: "\u7528\u6237\u534F\u8BAE" +--- !u!222 &1361301900 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1361301896} + m_CullTransparentMesh: 1 +--- !u!1 &1594687550 stripped +GameObject: + m_CorrespondingSourceObject: {fileID: 881993420502106925, guid: 427a01f0d31a9fd4e827b53b77aff0c6, type: 3} + m_PrefabInstance: {fileID: 506345625722630290} + m_PrefabAsset: {fileID: 0} +--- !u!114 &1594687552 stripped +MonoBehaviour: + m_CorrespondingSourceObject: {fileID: 5742476485532428161, guid: 427a01f0d31a9fd4e827b53b77aff0c6, type: 3} + m_PrefabInstance: {fileID: 506345625722630290} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1594687550} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: +--- !u!114 &1594687554 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1594687550} + 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: 1594687552} + m_OnClick: + m_PersistentCalls: + m_Calls: [] +--- !u!1 &1958868850 stripped +GameObject: + m_CorrespondingSourceObject: {fileID: 4354731379849768357, guid: 427a01f0d31a9fd4e827b53b77aff0c6, type: 3} + m_PrefabInstance: {fileID: 506345625722630290} + m_PrefabAsset: {fileID: 0} +--- !u!114 &1958868852 stripped +MonoBehaviour: + m_CorrespondingSourceObject: {fileID: 9194938270410935249, guid: 427a01f0d31a9fd4e827b53b77aff0c6, type: 3} + m_PrefabInstance: {fileID: 506345625722630290} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1958868850} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: +--- !u!114 &1958868854 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1958868850} + 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: 1958868852} + m_OnClick: + m_PersistentCalls: + m_Calls: [] +--- !u!1 &2078078122 stripped +GameObject: + m_CorrespondingSourceObject: {fileID: 7855409065241874916, guid: 427a01f0d31a9fd4e827b53b77aff0c6, type: 3} + m_PrefabInstance: {fileID: 506345625722630290} + m_PrefabAsset: {fileID: 0} +--- !u!114 &2078078124 stripped +MonoBehaviour: + m_CorrespondingSourceObject: {fileID: 371105783767489483, guid: 427a01f0d31a9fd4e827b53b77aff0c6, type: 3} + m_PrefabInstance: {fileID: 506345625722630290} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2078078122} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: +--- !u!114 &2078078126 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2078078122} + 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: 2078078124} + m_OnClick: + m_PersistentCalls: + m_Calls: [] --- !u!1001 &110195974451652481 PrefabInstance: m_ObjectHideFlags: 0 @@ -436,6 +1402,18 @@ PrefabInstance: propertyPath: m_AnchoredPosition.y value: -2 objectReference: {fileID: 0} + - target: {fileID: 5724180585406609153, guid: 3e6f026470f73c344b2045b3482245e5, type: 3} + propertyPath: m_IsActive + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6682677691977065292, guid: 3e6f026470f73c344b2045b3482245e5, type: 3} + propertyPath: YonghuToggle + value: + objectReference: {fileID: 1308798652} + - target: {fileID: 6682677691977065292, guid: 3e6f026470f73c344b2045b3482245e5, type: 3} + propertyPath: YonghuxieyiButton + value: + objectReference: {fileID: 1361301898} - target: {fileID: 7146033581323732752, guid: 3e6f026470f73c344b2045b3482245e5, type: 3} propertyPath: m_AnchorMax.y value: 1 @@ -454,7 +1432,10 @@ PrefabInstance: objectReference: {fileID: 0} m_RemovedComponents: [] m_RemovedGameObjects: [] - m_AddedGameObjects: [] + m_AddedGameObjects: + - targetCorrespondingSourceObject: {fileID: 1117870559965883902, guid: 3e6f026470f73c344b2045b3482245e5, type: 3} + insertIndex: -1 + addedObject: {fileID: 1308798651} m_AddedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: 3e6f026470f73c344b2045b3482245e5, type: 3} --- !u!1001 &506345625722630290 @@ -649,6 +1630,46 @@ PrefabInstance: propertyPath: m_SizeDelta.y value: 36 objectReference: {fileID: 0} + - target: {fileID: 3468460413272469185, guid: 427a01f0d31a9fd4e827b53b77aff0c6, type: 3} + propertyPath: Ally + value: + objectReference: {fileID: 282076595} + - target: {fileID: 3468460413272469185, guid: 427a01f0d31a9fd4e827b53b77aff0c6, type: 3} + propertyPath: team + value: + objectReference: {fileID: 428089387} + - target: {fileID: 3468460413272469185, guid: 427a01f0d31a9fd4e827b53b77aff0c6, type: 3} + propertyPath: world + value: + objectReference: {fileID: 407910688} + - target: {fileID: 3468460413272469185, guid: 427a01f0d31a9fd4e827b53b77aff0c6, type: 3} + propertyPath: Private + value: + objectReference: {fileID: 1263177445} + - target: {fileID: 3468460413272469185, guid: 427a01f0d31a9fd4e827b53b77aff0c6, type: 3} + propertyPath: btnmail + value: + objectReference: {fileID: 1958868854} + - target: {fileID: 3468460413272469185, guid: 427a01f0d31a9fd4e827b53b77aff0c6, type: 3} + propertyPath: SendButton + value: + objectReference: {fileID: 267906990} + - target: {fileID: 3468460413272469185, guid: 427a01f0d31a9fd4e827b53b77aff0c6, type: 3} + propertyPath: btnEchange + value: + objectReference: {fileID: 2078078126} + - target: {fileID: 3468460413272469185, guid: 427a01f0d31a9fd4e827b53b77aff0c6, type: 3} + propertyPath: FriendButton + value: + objectReference: {fileID: 1175214622} + - target: {fileID: 3468460413272469185, guid: 427a01f0d31a9fd4e827b53b77aff0c6, type: 3} + propertyPath: btnstoreroom + value: + objectReference: {fileID: 750982630} + - target: {fileID: 3468460413272469185, guid: 427a01f0d31a9fd4e827b53b77aff0c6, type: 3} + propertyPath: SettingButton + value: + objectReference: {fileID: 1594687554} - target: {fileID: 4227762007013285022, guid: 427a01f0d31a9fd4e827b53b77aff0c6, type: 3} propertyPath: m_SizeDelta.x value: 88 @@ -925,6 +1946,10 @@ PrefabInstance: propertyPath: m_SizeDelta.y value: 36 objectReference: {fileID: 0} + - target: {fileID: 7604575028899061301, guid: 427a01f0d31a9fd4e827b53b77aff0c6, type: 3} + propertyPath: m_IsActive + value: 1 + objectReference: {fileID: 0} - target: {fileID: 8399732672621779809, guid: 427a01f0d31a9fd4e827b53b77aff0c6, type: 3} propertyPath: m_AnchorMax.y value: 1 @@ -1032,7 +2057,37 @@ PrefabInstance: m_RemovedComponents: [] m_RemovedGameObjects: [] m_AddedGameObjects: [] - m_AddedComponents: [] + m_AddedComponents: + - targetCorrespondingSourceObject: {fileID: 2605955465838279898, guid: 427a01f0d31a9fd4e827b53b77aff0c6, type: 3} + insertIndex: -1 + addedObject: {fileID: 1175214622} + - targetCorrespondingSourceObject: {fileID: 881993420502106925, guid: 427a01f0d31a9fd4e827b53b77aff0c6, type: 3} + insertIndex: -1 + addedObject: {fileID: 1594687554} + - targetCorrespondingSourceObject: {fileID: 1800459440402032757, guid: 427a01f0d31a9fd4e827b53b77aff0c6, type: 3} + insertIndex: -1 + addedObject: {fileID: 407910688} + - targetCorrespondingSourceObject: {fileID: 6448317243723240111, guid: 427a01f0d31a9fd4e827b53b77aff0c6, type: 3} + insertIndex: -1 + addedObject: {fileID: 282076595} + - targetCorrespondingSourceObject: {fileID: 3948847535443682207, guid: 427a01f0d31a9fd4e827b53b77aff0c6, type: 3} + insertIndex: -1 + addedObject: {fileID: 428089387} + - targetCorrespondingSourceObject: {fileID: 1928988597050692352, guid: 427a01f0d31a9fd4e827b53b77aff0c6, type: 3} + insertIndex: -1 + addedObject: {fileID: 1263177445} + - targetCorrespondingSourceObject: {fileID: 5913284454080895486, guid: 427a01f0d31a9fd4e827b53b77aff0c6, type: 3} + insertIndex: -1 + addedObject: {fileID: 267906990} + - targetCorrespondingSourceObject: {fileID: 1592844008974013320, guid: 427a01f0d31a9fd4e827b53b77aff0c6, type: 3} + insertIndex: -1 + addedObject: {fileID: 750982630} + - targetCorrespondingSourceObject: {fileID: 7855409065241874916, guid: 427a01f0d31a9fd4e827b53b77aff0c6, type: 3} + insertIndex: -1 + addedObject: {fileID: 2078078126} + - targetCorrespondingSourceObject: {fileID: 4354731379849768357, guid: 427a01f0d31a9fd4e827b53b77aff0c6, type: 3} + insertIndex: -1 + addedObject: {fileID: 1958868854} m_SourcePrefab: {fileID: 100100000, guid: 427a01f0d31a9fd4e827b53b77aff0c6, type: 3} --- !u!1 &620350441982471378 GameObject: @@ -1885,6 +2940,10 @@ PrefabInstance: propertyPath: m_SizeDelta.y value: -916.1201 objectReference: {fileID: 0} + - target: {fileID: 3117852978250803362, guid: 8fce092f4c57da24eb54eaf645c1b45e, type: 3} + propertyPath: m_AnchoredPosition.x + value: 7.0008545 + objectReference: {fileID: 0} - target: {fileID: 3371123854786106541, guid: 8fce092f4c57da24eb54eaf645c1b45e, type: 3} propertyPath: m_AnchorMax.y value: 1 @@ -2432,6 +3491,10 @@ PrefabInstance: propertyPath: m_SizeDelta.y value: 36 objectReference: {fileID: 0} + - target: {fileID: 7513761690682158921, guid: ea8c320ba839c1a4eb7e0a054f509583, type: 3} + propertyPath: m_AnchoredPosition.x + value: 13.659912 + objectReference: {fileID: 0} - target: {fileID: 8776384716154059255, guid: ea8c320ba839c1a4eb7e0a054f509583, type: 3} propertyPath: m_Pivot.x value: 0.5 diff --git a/Assets/Scripts/Anim.cs b/Assets/Scripts/Anim.cs new file mode 100644 index 0000000..f0c4e77 --- /dev/null +++ b/Assets/Scripts/Anim.cs @@ -0,0 +1,81 @@ +using DG.Tweening; +using System.Collections; +using System.Collections.Generic; +using System.Threading.Tasks; +using UnityEngine; +using UnityEngine.UI; + +public class Anim : MonoBehaviour +{ + /// + /// 按钮放大倍数 + /// + private float scaleMultiplier = 1.2f; + /// + /// 按钮放大缩小的时间 + /// + private float scaleUpDuration = 0.2f; + private float scaleDownDuration = 0.2f; + /// + /// 按钮本身的缩放倍数 + /// + private Vector3 originalScale; + /// + /// 按钮动画响应时间 + /// + public int BTntimer = 500; + // Start is called before the first frame update + void Start() + { + + } + /// + /// 按钮 + /// + /// + public void BTnmove(GameObject ob) + { + originalScale = transform.localScale; + + ob.transform.DOScale(ob.transform.localScale * scaleMultiplier, scaleUpDuration) + .OnComplete(() => + { + ob.transform.DOScale(originalScale, scaleDownDuration); + }); + Task.Delay(BTntimer); + } + public void ShowPanel(GameObject panel) + { + if (panel == null) + { + Debug.Log("panel==null"); + return; + } + panel.SetActive(true); + panel.transform.localScale = new Vector3(0.5f, 0.5f, 0.5f); + panel.transform.DOScale(1f, 0.5f); + } + + public void HidePanel(GameObject panel, bool isdes) + { + panel.transform.DOScale(0.5f, 0.5f); + if (isdes) + { + Destroy(panel); + } + else + { + panel.SetActive(false); + } + } + public void MoveToOriginBy(GameObject target) + { + Vector3 currentPosition = target.transform.position; + target.transform.DOMove(new Vector3(540, 960, 0), 0.5f); // 使用 DOMove 直接移动到原点 + } + // Update is called once per frame + void Update() + { + + } +} diff --git a/Assets/Scripts/Anim.cs.meta b/Assets/Scripts/Anim.cs.meta new file mode 100644 index 0000000..b1268a8 --- /dev/null +++ b/Assets/Scripts/Anim.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 121eb3bf7e6cab74ca5d8a01b8824b16 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/UI/Login.cs b/Assets/Scripts/UI/Login.cs index 2c0ff42..30c64fd 100644 --- a/Assets/Scripts/UI/Login.cs +++ b/Assets/Scripts/UI/Login.cs @@ -2,15 +2,23 @@ using UnityEngine; using UnityEngine.UI; -public class Login : MonoBehaviour +public class Login : Anim { public Button btnRegister; public Button btnSure; // Start is called before the first frame update void Start() { - btnRegister.onClick.AddListener(OnClickRegister); - btnSure.onClick.AddListener(OnClickSure); + btnRegister.onClick.AddListener(() => + { + BTnmove(btnRegister.gameObject); + Invoke("OnClickRegister",0.5f); + }); + btnSure.onClick.AddListener ( ()=> + { + BTnmove(btnSure.gameObject); + Invoke("OnClickSure", 0.5f); + }); } // Update is called once per frame diff --git a/Assets/Scripts/UI/MainPanel.cs b/Assets/Scripts/UI/MainPanel.cs index 66352c7..25b8404 100644 --- a/Assets/Scripts/UI/MainPanel.cs +++ b/Assets/Scripts/UI/MainPanel.cs @@ -3,15 +3,71 @@ using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; -public class MainPanel : MonoBehaviour +public class MainPanel : Anim { private bool isOpenBulindingHpuse; public Button btnBulidingHouse; + public Button btnstoreroom; + public Button btnEchange; + public Button btnmail; + + public Button world; + public Button Ally; + public Button team; + public Button Private; + public Button FriendButton; + public Button SettingButton; + + public Button SendButton; // Start is called before the first frame update void Start() { - btnBulidingHouse.onClick.AddListener(OnClickBulidingHouse); - isOpenBulindingHpuse=true; + btnBulidingHouse.onClick.AddListener((() => + { + BTnmove(btnBulidingHouse.gameObject); + Invoke("OnClickBulidingHouse",0.5f); + })); + btnstoreroom.onClick.AddListener(() => + { + BTnmove(btnstoreroom.gameObject); + }); + btnEchange.onClick.AddListener(() => + { + BTnmove(btnEchange.gameObject); + }); + btnmail.onClick.AddListener(() => + { + BTnmove(btnmail.gameObject); + }); + world.onClick.AddListener(() => + { + BTnmove(world.gameObject); + }); + Ally.onClick.AddListener(() => + { + BTnmove(Ally.gameObject); + }); + team.onClick.AddListener(() => + { + BTnmove(team.gameObject); + }); + Private.onClick.AddListener(() => + { + BTnmove(Private.gameObject); + }); + FriendButton.onClick.AddListener(() => + { + BTnmove(FriendButton.gameObject); + }); + SettingButton.onClick.AddListener(() => + { + BTnmove(SettingButton.gameObject); + }); + SendButton.onClick.AddListener(() => + { + BTnmove(SendButton.gameObject); + }); + isOpenBulindingHpuse =true; } // Update is called once per frame diff --git a/Assets/Scripts/UI/Protocol.cs b/Assets/Scripts/UI/Protocol.cs index 79b9d31..550896e 100644 --- a/Assets/Scripts/UI/Protocol.cs +++ b/Assets/Scripts/UI/Protocol.cs @@ -4,18 +4,26 @@ using Unity.VisualScripting; using UnityEngine; using UnityEngine.UI; -public class Protocol : MonoBehaviour +public class Protocol : Anim { - public Image imgUserPocol; - public Button btnUserProtorotcol; + public Button YonghuxieyiButton; public Button btnEmail; - private bool isUserBool; + + public Toggle YonghuToggle; // Start is called before the first frame update void Start() { UIManager.Instance.CloseUI("Load"); - btnUserProtorotcol.onClick.AddListener(OnUserProtocolk); - btnEmail.onClick.AddListener(OnEmail); + YonghuxieyiButton.onClick.AddListener(() => + { + BTnmove(YonghuxieyiButton.gameObject); + OnUserProtocolk(); + }); + btnEmail.onClick.AddListener(() => + { + BTnmove(btnEmail.gameObject); + Invoke("OnEmail",0.5f); + }); } // Update is called once per frame @@ -25,19 +33,16 @@ public class Protocol : MonoBehaviour } void OnUserProtocolk() { - // 在这里添加你的逻辑 - Sprite go=UIManager.Instance.ResSprit("Protocol_UI/x"); - imgUserPocol.sprite = go; - isUserBool = true; + YonghuToggle.isOn = true; } void OnEmail() { - if (!isUserBool) { - return; + if (YonghuToggle.isOn) { + UIManager.Instance.CloseUI("Protocol"); + UIManager.Instance.OPenUI("Login"); } - UIManager.Instance.CloseUI("Protocol"); - UIManager.Instance.OPenUI("Login"); + } } diff --git a/Assets/Scripts/UI/Register.cs b/Assets/Scripts/UI/Register.cs index ce8ad6d..5f2ff6f 100644 --- a/Assets/Scripts/UI/Register.cs +++ b/Assets/Scripts/UI/Register.cs @@ -3,15 +3,23 @@ using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; -public class Register : MonoBehaviour +public class Register : Anim { public Button btnExit; public Button btnSure; // Start is called before the first frame update void Start() { - btnExit.onClick.AddListener(OnClickExit); - btnSure.onClick.AddListener(OnClickSure); + btnExit.onClick.AddListener(() => + { + BTnmove(btnExit.gameObject); + Invoke("OnClickExit",0.5f); + }); + btnSure.onClick.AddListener(() => + { + BTnmove(btnSure.gameObject); + Invoke("OnClickSure", 0.5f); + }); } // Update is called once per frame diff --git a/Assets/Scripts/UI/Role.cs b/Assets/Scripts/UI/Role.cs index 557400c..9d008c9 100644 --- a/Assets/Scripts/UI/Role.cs +++ b/Assets/Scripts/UI/Role.cs @@ -1,7 +1,7 @@ using UnityEngine; using UnityEngine.UI; -public class Role : MonoBehaviour +public class Role : Anim { public Image imgMale; public Image imgFamale; @@ -12,10 +12,26 @@ public class Role : MonoBehaviour // Start is called before the first frame update void Start() { - btnMale.onClick.AddListener(OnClickMale); - btnFemale.onClick.AddListener(OnClickFemale); - btnSure.onClick.AddListener(OnClickSure); - btnReturn.onClick.AddListener(OnClickReturn); + btnMale.onClick.AddListener(() => + { + BTnmove(btnMale.gameObject); + OnClickMale(); + }); + btnFemale.onClick.AddListener((() => + { + BTnmove(btnFemale.gameObject); + OnClickFemale(); + })); + btnSure.onClick.AddListener(() => + { + BTnmove(btnFemale.gameObject); + Invoke("OnClickSure",0.5f); + }); + btnReturn.onClick.AddListener(() => + { + BTnmove(btnReturn.gameObject); + Invoke("OnClickReturn", 0.5f); + }); } // Update is called once per frame