From 530a1066b64754a0c39c84914763a5ade04c87b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E5=8F=B7=E6=95=AC?= <153802103@qq.com> Date: Tue, 7 Jan 2025 15:19:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=80=E5=BC=BA=E9=92=93=E6=89=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- meng_yao/Assets/Scenes/scene_Main.unity | 489 +++++++++++++++++- meng_yao/Assets/communal/UI/SpriteAniation.cs | 7 +- .../scene_Main/Thebestfishman/WebJoinroom.cs | 97 +++- .../scene_Main/Thebestfishman/shougou.cs | 25 + .../scene_Main/Thebestfishman/shougou.cs.meta | 11 + 5 files changed, 601 insertions(+), 28 deletions(-) create mode 100644 meng_yao/Assets/script/scene_Main/Thebestfishman/shougou.cs create mode 100644 meng_yao/Assets/script/scene_Main/Thebestfishman/shougou.cs.meta diff --git a/meng_yao/Assets/Scenes/scene_Main.unity b/meng_yao/Assets/Scenes/scene_Main.unity index bc3a254b..0c231e1c 100644 --- a/meng_yao/Assets/Scenes/scene_Main.unity +++ b/meng_yao/Assets/Scenes/scene_Main.unity @@ -12209,6 +12209,7 @@ MonoBehaviour: - {fileID: 21300000, guid: b80d3c5c3d4807d4b8656191ed080c5e, type: 3} image: {fileID: 121891833} Aintime: 100 + index: 0 --- !u!114 &121891833 MonoBehaviour: m_ObjectHideFlags: 0 @@ -15806,6 +15807,7 @@ MonoBehaviour: - {fileID: 21300000, guid: c667be05546742142b2fe123b010427a, type: 3} image: {fileID: 163450910} Aintime: 50 + index: 0 --- !u!114 &163450910 MonoBehaviour: m_ObjectHideFlags: 0 @@ -22637,6 +22639,7 @@ MonoBehaviour: - {fileID: 21300000, guid: 547cbe17cab67584797da171fdb98400, type: 3} image: {fileID: 243871732} Aintime: 100 + index: 0 --- !u!114 &243871732 MonoBehaviour: m_ObjectHideFlags: 0 @@ -24379,6 +24382,7 @@ GameObject: - component: {fileID: 264070089} - component: {fileID: 264070091} - component: {fileID: 264070090} + - component: {fileID: 264070092} m_Layer: 5 m_Name: lagandi m_TagString: Untagged @@ -24445,6 +24449,27 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 264070088} m_CullTransparentMesh: 1 +--- !u!95 &264070092 +Animator: + serializedVersion: 5 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 264070088} + m_Enabled: 0 + m_Avatar: {fileID: 0} + m_Controller: {fileID: 9100000, guid: 1f45fa3f7ed6eaa4b8a71f25a1781258, type: 2} + m_CullingMode: 0 + m_UpdateMode: 0 + m_ApplyRootMotion: 0 + m_LinearVelocityBlending: 0 + m_StabilizeFeet: 0 + m_WarningMessage: + m_HasTransformHierarchy: 1 + m_AllowConstantClipSamplingOptimization: 1 + m_KeepAnimatorStateOnDisable: 0 + m_WriteDefaultValuesOnDisable: 0 --- !u!1 &267200067 GameObject: m_ObjectHideFlags: 0 @@ -28859,6 +28884,7 @@ MonoBehaviour: - {fileID: 21300000, guid: 663f9c26451ff594e9536e828fbf49b2, type: 3} image: {fileID: 322066554} Aintime: 50 + index: 0 --- !u!114 &322066554 MonoBehaviour: m_ObjectHideFlags: 0 @@ -36061,6 +36087,7 @@ MonoBehaviour: - {fileID: 21300000, guid: a17edc07472e499429da1cffff9799e8, type: 3} image: {fileID: 380306307} Aintime: 100 + index: 0 --- !u!114 &380306307 MonoBehaviour: m_ObjectHideFlags: 0 @@ -47438,6 +47465,398 @@ PrefabInstance: propertyPath: m_AnchoredPosition.y value: 392 objectReference: {fileID: 0} + - target: {fileID: 733367788698553748, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + propertyPath: sprites.Array.size + value: 26 + objectReference: {fileID: 0} + - target: {fileID: 733367788698553748, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + propertyPath: sprites.Array.data[0] + value: + objectReference: {fileID: 21300000, guid: 357fd99684b2eb34bb49ea997a2dcb7d, type: 3} + - target: {fileID: 733367788698553748, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + propertyPath: sprites.Array.data[1] + value: + objectReference: {fileID: 21300000, guid: 911570703ce823c46a830ef7443f7e5b, type: 3} + - target: {fileID: 733367788698553748, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + propertyPath: sprites.Array.data[2] + value: + objectReference: {fileID: 21300000, guid: e004c2b3d4f6d6142b6b7babae1ec1e4, type: 3} + - target: {fileID: 733367788698553748, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + propertyPath: sprites.Array.data[3] + value: + objectReference: {fileID: 21300000, guid: ae4bf1bfa5aa93e43bc0b7af70c90bce, type: 3} + - target: {fileID: 733367788698553748, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + propertyPath: sprites.Array.data[4] + value: + objectReference: {fileID: 21300000, guid: 78e9e20ac17c1f947be8dd3ad17b09ee, type: 3} + - target: {fileID: 733367788698553748, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + propertyPath: sprites.Array.data[5] + value: + objectReference: {fileID: 21300000, guid: fa05b7bd53b1020408bdb38f1a4944c0, type: 3} + - target: {fileID: 733367788698553748, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + propertyPath: sprites.Array.data[6] + value: + objectReference: {fileID: 21300000, guid: c1bbb89950074a246ac1bd05d4ee1727, type: 3} + - target: {fileID: 733367788698553748, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + propertyPath: sprites.Array.data[7] + value: + objectReference: {fileID: 21300000, guid: ced5c23c367f803458f94b5b5f4b9ea4, type: 3} + - target: {fileID: 733367788698553748, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + propertyPath: sprites.Array.data[8] + value: + objectReference: {fileID: 21300000, guid: d724052ef73fd714bab9f16beab3c4ae, type: 3} + - target: {fileID: 733367788698553748, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + propertyPath: sprites.Array.data[9] + value: + objectReference: {fileID: 21300000, guid: aeee60897e1d0474591e62c83507737f, type: 3} + - target: {fileID: 733367788698553748, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + propertyPath: sprites.Array.data[10] + value: + objectReference: {fileID: 21300000, guid: 792c06919721382478e4a6bc13b3e9e0, type: 3} + - target: {fileID: 733367788698553748, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + propertyPath: sprites.Array.data[11] + value: + objectReference: {fileID: 21300000, guid: b71fe06470a964647bbd836e2a92860d, type: 3} + - target: {fileID: 733367788698553748, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + propertyPath: sprites.Array.data[12] + value: + objectReference: {fileID: 21300000, guid: f6a533bfcb8d60e48bfd56633f8cb393, type: 3} + - target: {fileID: 733367788698553748, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + propertyPath: sprites.Array.data[13] + value: + objectReference: {fileID: 21300000, guid: 9b93821e4c5eb9f4d9b3a2f9360380c6, type: 3} + - target: {fileID: 733367788698553748, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + propertyPath: sprites.Array.data[14] + value: + objectReference: {fileID: 21300000, guid: 389159cad8f876a4794fcfa9bd343855, type: 3} + - target: {fileID: 733367788698553748, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + propertyPath: sprites.Array.data[15] + value: + objectReference: {fileID: 21300000, guid: 46f0fc143e457e44ea6d5ddd57171118, type: 3} + - target: {fileID: 733367788698553748, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + propertyPath: sprites.Array.data[16] + value: + objectReference: {fileID: 21300000, guid: 79739cd7173d2b44f8cd4270248eb0a8, type: 3} + - target: {fileID: 733367788698553748, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + propertyPath: sprites.Array.data[17] + value: + objectReference: {fileID: 21300000, guid: 84df5ccfdcd3fd4439d659a5eb80d810, type: 3} + - target: {fileID: 733367788698553748, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + propertyPath: sprites.Array.data[18] + value: + objectReference: {fileID: 21300000, guid: 836f1a8e894e9e847b97c15afa0746b8, type: 3} + - target: {fileID: 733367788698553748, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + propertyPath: sprites.Array.data[19] + value: + objectReference: {fileID: 21300000, guid: 94a1b027423040f4fb6bb349c2f5849e, type: 3} + - target: {fileID: 733367788698553748, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + propertyPath: sprites.Array.data[20] + value: + objectReference: {fileID: 21300000, guid: 3f036002857547e4aa6c178c68bf844c, type: 3} + - target: {fileID: 733367788698553748, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + propertyPath: sprites.Array.data[21] + value: + objectReference: {fileID: 21300000, guid: ee831bd5b9f6c674dbad1b5655d8bfcb, type: 3} + - target: {fileID: 733367788698553748, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + propertyPath: sprites.Array.data[22] + value: + objectReference: {fileID: 21300000, guid: b018a07f4b192e342a9c53c25b4465bc, type: 3} + - target: {fileID: 733367788698553748, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + propertyPath: sprites.Array.data[23] + value: + objectReference: {fileID: 21300000, guid: e1720871e71319a4d8f4e808043c9d8f, type: 3} + - target: {fileID: 733367788698553748, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + propertyPath: sprites.Array.data[24] + value: + objectReference: {fileID: 21300000, guid: 3a2cf71aec8922b4391f6e4dcd1cc4de, type: 3} + - target: {fileID: 733367788698553748, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + propertyPath: sprites.Array.data[25] + value: + objectReference: {fileID: 21300000, guid: 93da14b3c0666d4478ad2b81f69e4cbf, type: 3} + - target: {fileID: 733367788698553748, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + propertyPath: sprites.Array.data[26] + value: + objectReference: {fileID: 21300000, guid: fb4c771b761df0b4d8c2091770b44d1a, type: 3} + - target: {fileID: 733367788698553748, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + propertyPath: sprites.Array.data[27] + value: + objectReference: {fileID: 21300000, guid: a923dd10c0b2d3f4fa9ffdca6b06d13c, type: 3} + - target: {fileID: 733367788698553748, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + propertyPath: sprites.Array.data[28] + value: + objectReference: {fileID: 21300000, guid: c28d4803454c6b04b8938aceca677cb3, type: 3} + - target: {fileID: 733367788698553748, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + propertyPath: sprites.Array.data[29] + value: + objectReference: {fileID: 21300000, guid: 6d493253b3aaf234db74bebe5cbfe6d7, type: 3} + - target: {fileID: 733367788698553748, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + propertyPath: sprites.Array.data[30] + value: + objectReference: {fileID: 21300000, guid: 5f013abf23a2a66488edf2da51c3a949, type: 3} + - target: {fileID: 733367788698553748, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + propertyPath: sprites.Array.data[31] + value: + objectReference: {fileID: 21300000, guid: 9c368279185bb644abc3e84ab21e4479, type: 3} + - target: {fileID: 733367788698553748, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + propertyPath: sprites.Array.data[32] + value: + objectReference: {fileID: 21300000, guid: 357fd99684b2eb34bb49ea997a2dcb7d, type: 3} + - target: {fileID: 733367788698553748, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + propertyPath: sprites.Array.data[33] + value: + objectReference: {fileID: 21300000, guid: 911570703ce823c46a830ef7443f7e5b, type: 3} + - target: {fileID: 733367788698553748, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + propertyPath: sprites.Array.data[34] + value: + objectReference: {fileID: 21300000, guid: e004c2b3d4f6d6142b6b7babae1ec1e4, type: 3} + - target: {fileID: 733367788698553748, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + propertyPath: sprites.Array.data[35] + value: + objectReference: {fileID: 21300000, guid: ae4bf1bfa5aa93e43bc0b7af70c90bce, type: 3} + - target: {fileID: 733367788698553748, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + propertyPath: sprites.Array.data[36] + value: + objectReference: {fileID: 21300000, guid: 78e9e20ac17c1f947be8dd3ad17b09ee, type: 3} + - target: {fileID: 733367788698553748, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + propertyPath: sprites.Array.data[37] + value: + objectReference: {fileID: 21300000, guid: b018a07f4b192e342a9c53c25b4465bc, type: 3} + - target: {fileID: 733367788698553748, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + propertyPath: sprites.Array.data[38] + value: + objectReference: {fileID: 21300000, guid: e1720871e71319a4d8f4e808043c9d8f, type: 3} + - target: {fileID: 733367788698553748, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + propertyPath: sprites.Array.data[39] + value: + objectReference: {fileID: 21300000, guid: 3a2cf71aec8922b4391f6e4dcd1cc4de, type: 3} + - target: {fileID: 733367788698553748, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + propertyPath: sprites.Array.data[40] + value: + objectReference: {fileID: 21300000, guid: 3a2cf71aec8922b4391f6e4dcd1cc4de, type: 3} + - target: {fileID: 733367788698553748, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + propertyPath: sprites.Array.data[41] + value: + objectReference: {fileID: 21300000, guid: 3a2cf71aec8922b4391f6e4dcd1cc4de, type: 3} + - target: {fileID: 733367788698553748, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + propertyPath: sprites.Array.data[42] + value: + objectReference: {fileID: 21300000, guid: 3a2cf71aec8922b4391f6e4dcd1cc4de, type: 3} + - target: {fileID: 733367788698553748, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + propertyPath: sprites.Array.data[43] + value: + objectReference: {fileID: 21300000, guid: 3a2cf71aec8922b4391f6e4dcd1cc4de, type: 3} + - target: {fileID: 733367788698553748, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + propertyPath: sprites.Array.data[44] + value: + objectReference: {fileID: 21300000, guid: 3a2cf71aec8922b4391f6e4dcd1cc4de, type: 3} + - target: {fileID: 733367788698553748, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + propertyPath: sprites.Array.data[45] + value: + objectReference: {fileID: 21300000, guid: 3a2cf71aec8922b4391f6e4dcd1cc4de, type: 3} + - target: {fileID: 733367788698553748, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + propertyPath: sprites.Array.data[46] + value: + objectReference: {fileID: 21300000, guid: 3a2cf71aec8922b4391f6e4dcd1cc4de, type: 3} + - target: {fileID: 733367788698553748, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + propertyPath: sprites.Array.data[47] + value: + objectReference: {fileID: 21300000, guid: 3a2cf71aec8922b4391f6e4dcd1cc4de, type: 3} + - target: {fileID: 733367788698553748, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + propertyPath: sprites.Array.data[48] + value: + objectReference: {fileID: 21300000, guid: 3a2cf71aec8922b4391f6e4dcd1cc4de, type: 3} + - target: {fileID: 733367788698553748, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + propertyPath: sprites.Array.data[49] + value: + objectReference: {fileID: 21300000, guid: 3a2cf71aec8922b4391f6e4dcd1cc4de, type: 3} + - target: {fileID: 733367788698553748, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + propertyPath: sprites.Array.data[50] + value: + objectReference: {fileID: 21300000, guid: 3a2cf71aec8922b4391f6e4dcd1cc4de, type: 3} + - target: {fileID: 733367788698553748, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + propertyPath: sprites.Array.data[51] + value: + objectReference: {fileID: 21300000, guid: 3a2cf71aec8922b4391f6e4dcd1cc4de, type: 3} + - target: {fileID: 733367788698553748, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + propertyPath: sprites.Array.data[52] + value: + objectReference: {fileID: 21300000, guid: 3a2cf71aec8922b4391f6e4dcd1cc4de, type: 3} + - target: {fileID: 733367788698553748, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + propertyPath: sprites.Array.data[53] + value: + objectReference: {fileID: 21300000, guid: 3a2cf71aec8922b4391f6e4dcd1cc4de, type: 3} + - target: {fileID: 733367788698553748, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + propertyPath: sprites.Array.data[54] + value: + objectReference: {fileID: 21300000, guid: 3a2cf71aec8922b4391f6e4dcd1cc4de, type: 3} + - target: {fileID: 733367788698553748, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + propertyPath: sprites.Array.data[55] + value: + objectReference: {fileID: 21300000, guid: 3a2cf71aec8922b4391f6e4dcd1cc4de, type: 3} + - target: {fileID: 733367788698553748, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + propertyPath: sprites.Array.data[56] + value: + objectReference: {fileID: 21300000, guid: 3a2cf71aec8922b4391f6e4dcd1cc4de, type: 3} + - target: {fileID: 733367788698553748, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + propertyPath: sprites.Array.data[57] + value: + objectReference: {fileID: 21300000, guid: 3a2cf71aec8922b4391f6e4dcd1cc4de, type: 3} + - target: {fileID: 733367788698553748, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + propertyPath: sprites.Array.data[58] + value: + objectReference: {fileID: 21300000, guid: 3a2cf71aec8922b4391f6e4dcd1cc4de, type: 3} + - target: {fileID: 733367788698553748, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + propertyPath: sprites.Array.data[59] + value: + objectReference: {fileID: 21300000, guid: 3a2cf71aec8922b4391f6e4dcd1cc4de, type: 3} + - target: {fileID: 733367788698553748, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + propertyPath: sprites.Array.data[60] + value: + objectReference: {fileID: 21300000, guid: 3a2cf71aec8922b4391f6e4dcd1cc4de, type: 3} + - target: {fileID: 733367788698553748, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + propertyPath: sprites.Array.data[61] + value: + objectReference: {fileID: 21300000, guid: 3a2cf71aec8922b4391f6e4dcd1cc4de, type: 3} + - target: {fileID: 733367788698553748, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + propertyPath: sprites.Array.data[62] + value: + objectReference: {fileID: 21300000, guid: 3a2cf71aec8922b4391f6e4dcd1cc4de, type: 3} + - target: {fileID: 733367788698553748, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + propertyPath: sprites.Array.data[63] + value: + objectReference: {fileID: 21300000, guid: 3a2cf71aec8922b4391f6e4dcd1cc4de, type: 3} + - target: {fileID: 733367788698553748, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + propertyPath: sprites.Array.data[64] + value: + objectReference: {fileID: 21300000, guid: 3a2cf71aec8922b4391f6e4dcd1cc4de, type: 3} + - target: {fileID: 733367788698553748, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + propertyPath: sprites.Array.data[65] + value: + objectReference: {fileID: 21300000, guid: 3a2cf71aec8922b4391f6e4dcd1cc4de, type: 3} + - target: {fileID: 733367788698553748, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + propertyPath: sprites.Array.data[66] + value: + objectReference: {fileID: 21300000, guid: 3a2cf71aec8922b4391f6e4dcd1cc4de, type: 3} + - target: {fileID: 733367788698553748, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + propertyPath: sprites.Array.data[67] + value: + objectReference: {fileID: 21300000, guid: 3a2cf71aec8922b4391f6e4dcd1cc4de, type: 3} + - target: {fileID: 733367788698553748, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + propertyPath: sprites.Array.data[68] + value: + objectReference: {fileID: 21300000, guid: 3a2cf71aec8922b4391f6e4dcd1cc4de, type: 3} + - target: {fileID: 733367788698553748, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + propertyPath: sprites.Array.data[69] + value: + objectReference: {fileID: 21300000, guid: 3a2cf71aec8922b4391f6e4dcd1cc4de, type: 3} + - target: {fileID: 733367788698553748, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + propertyPath: sprites.Array.data[70] + value: + objectReference: {fileID: 21300000, guid: 3a2cf71aec8922b4391f6e4dcd1cc4de, type: 3} + - target: {fileID: 733367788698553748, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + propertyPath: sprites.Array.data[71] + value: + objectReference: {fileID: 21300000, guid: 3a2cf71aec8922b4391f6e4dcd1cc4de, type: 3} + - target: {fileID: 733367788698553748, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + propertyPath: sprites.Array.data[72] + value: + objectReference: {fileID: 21300000, guid: 3a2cf71aec8922b4391f6e4dcd1cc4de, type: 3} + - target: {fileID: 733367788698553748, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + propertyPath: sprites.Array.data[73] + value: + objectReference: {fileID: 21300000, guid: 3a2cf71aec8922b4391f6e4dcd1cc4de, type: 3} + - target: {fileID: 733367788698553748, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + propertyPath: sprites.Array.data[74] + value: + objectReference: {fileID: 21300000, guid: 3a2cf71aec8922b4391f6e4dcd1cc4de, type: 3} + - target: {fileID: 733367788698553748, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + propertyPath: sprites.Array.data[75] + value: + objectReference: {fileID: 21300000, guid: 3a2cf71aec8922b4391f6e4dcd1cc4de, type: 3} + - target: {fileID: 733367788698553748, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + propertyPath: sprites.Array.data[76] + value: + objectReference: {fileID: 21300000, guid: 3a2cf71aec8922b4391f6e4dcd1cc4de, type: 3} + - target: {fileID: 733367788698553748, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + propertyPath: sprites.Array.data[77] + value: + objectReference: {fileID: 21300000, guid: 3a2cf71aec8922b4391f6e4dcd1cc4de, type: 3} + - target: {fileID: 733367788698553748, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + propertyPath: sprites.Array.data[78] + value: + objectReference: {fileID: 21300000, guid: 3a2cf71aec8922b4391f6e4dcd1cc4de, type: 3} + - target: {fileID: 733367788698553748, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + propertyPath: sprites.Array.data[79] + value: + objectReference: {fileID: 21300000, guid: 3a2cf71aec8922b4391f6e4dcd1cc4de, type: 3} + - target: {fileID: 733367788698553748, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + propertyPath: sprites.Array.data[80] + value: + objectReference: {fileID: 21300000, guid: 3a2cf71aec8922b4391f6e4dcd1cc4de, type: 3} + - target: {fileID: 733367788698553748, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + propertyPath: sprites.Array.data[81] + value: + objectReference: {fileID: 21300000, guid: 3a2cf71aec8922b4391f6e4dcd1cc4de, type: 3} + - target: {fileID: 733367788698553748, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + propertyPath: sprites.Array.data[82] + value: + objectReference: {fileID: 21300000, guid: 3a2cf71aec8922b4391f6e4dcd1cc4de, type: 3} + - target: {fileID: 733367788698553748, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + propertyPath: sprites.Array.data[83] + value: + objectReference: {fileID: 21300000, guid: 3a2cf71aec8922b4391f6e4dcd1cc4de, type: 3} + - target: {fileID: 733367788698553748, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + propertyPath: sprites.Array.data[84] + value: + objectReference: {fileID: 21300000, guid: 3a2cf71aec8922b4391f6e4dcd1cc4de, type: 3} + - target: {fileID: 733367788698553748, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + propertyPath: sprites.Array.data[85] + value: + objectReference: {fileID: 21300000, guid: 3a2cf71aec8922b4391f6e4dcd1cc4de, type: 3} + - target: {fileID: 733367788698553748, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + propertyPath: sprites.Array.data[86] + value: + objectReference: {fileID: 21300000, guid: 3a2cf71aec8922b4391f6e4dcd1cc4de, type: 3} + - target: {fileID: 733367788698553748, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + propertyPath: sprites.Array.data[87] + value: + objectReference: {fileID: 21300000, guid: 3a2cf71aec8922b4391f6e4dcd1cc4de, type: 3} + - target: {fileID: 733367788698553748, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + propertyPath: sprites.Array.data[88] + value: + objectReference: {fileID: 21300000, guid: 3a2cf71aec8922b4391f6e4dcd1cc4de, type: 3} + - target: {fileID: 733367788698553748, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + propertyPath: sprites.Array.data[89] + value: + objectReference: {fileID: 21300000, guid: 3a2cf71aec8922b4391f6e4dcd1cc4de, type: 3} + - target: {fileID: 733367788698553748, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + propertyPath: sprites.Array.data[90] + value: + objectReference: {fileID: 21300000, guid: 3a2cf71aec8922b4391f6e4dcd1cc4de, type: 3} + - target: {fileID: 733367788698553748, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + propertyPath: sprites.Array.data[91] + value: + objectReference: {fileID: 21300000, guid: 3a2cf71aec8922b4391f6e4dcd1cc4de, type: 3} + - target: {fileID: 733367788698553748, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + propertyPath: sprites.Array.data[92] + value: + objectReference: {fileID: 21300000, guid: 3a2cf71aec8922b4391f6e4dcd1cc4de, type: 3} + - target: {fileID: 733367788698553748, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + propertyPath: sprites.Array.data[93] + value: + objectReference: {fileID: 21300000, guid: 3a2cf71aec8922b4391f6e4dcd1cc4de, type: 3} + - target: {fileID: 733367788698553748, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + propertyPath: sprites.Array.data[94] + value: + objectReference: {fileID: 21300000, guid: 3a2cf71aec8922b4391f6e4dcd1cc4de, type: 3} + - target: {fileID: 733367788698553748, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + propertyPath: sprites.Array.data[95] + value: + objectReference: {fileID: 21300000, guid: 3a2cf71aec8922b4391f6e4dcd1cc4de, type: 3} + - target: {fileID: 733367788698553748, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + propertyPath: sprites.Array.data[96] + value: + objectReference: {fileID: 21300000, guid: 3a2cf71aec8922b4391f6e4dcd1cc4de, type: 3} - target: {fileID: 733367788698553749, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} propertyPath: m_AnchorMax.x value: 0.5 @@ -47605,6 +48024,46 @@ RectTransform: m_CorrespondingSourceObject: {fileID: 733367788367011692, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} m_PrefabInstance: {fileID: 501862951} m_PrefabAsset: {fileID: 0} +--- !u!1 &501862953 stripped +GameObject: + m_CorrespondingSourceObject: {fileID: 733367788698553746, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + m_PrefabInstance: {fileID: 501862951} + m_PrefabAsset: {fileID: 0} +--- !u!1 &501862954 stripped +GameObject: + m_CorrespondingSourceObject: {fileID: 733367789164716955, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + m_PrefabInstance: {fileID: 501862951} + m_PrefabAsset: {fileID: 0} +--- !u!1 &501862955 stripped +GameObject: + m_CorrespondingSourceObject: {fileID: 733367789189135227, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + m_PrefabInstance: {fileID: 501862951} + m_PrefabAsset: {fileID: 0} +--- !u!114 &501862956 stripped +MonoBehaviour: + m_CorrespondingSourceObject: {fileID: 733367788698553748, guid: f13658d19ec7f5443ab5e5c4f3cb5bef, type: 3} + m_PrefabInstance: {fileID: 501862951} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 501862953} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: d92d400040e59ed43a15639f04e5c455, type: 3} + m_Name: + m_EditorClassIdentifier: +--- !u!114 &501862960 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 501862953} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 0cb7141c079d45044a727466bb73fedd, type: 3} + m_Name: + m_EditorClassIdentifier: + SpriteAniation: {fileID: 501862956} + daiji: {fileID: 501862955} --- !u!1 &501903608 GameObject: m_ObjectHideFlags: 0 @@ -51960,6 +52419,7 @@ MonoBehaviour: - {fileID: 21300000, guid: 39e8414d20a7e4f40a4847176906c7c8, type: 3} image: {fileID: 557884280} Aintime: 80 + index: 0 --- !u!114 &557884280 MonoBehaviour: m_ObjectHideFlags: 0 @@ -79402,6 +79862,7 @@ MonoBehaviour: - {fileID: 21300000, guid: 2c29e65abe30fbe4ab2fe9e619b2e308, type: 3} image: {fileID: 835633160} Aintime: 80 + index: 0 --- !u!114 &835633160 MonoBehaviour: m_ObjectHideFlags: 0 @@ -100338,7 +100799,7 @@ GameObject: m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 - m_IsActive: 0 + m_IsActive: 1 --- !u!224 &1073200880 RectTransform: m_ObjectHideFlags: 0 @@ -100387,6 +100848,10 @@ MonoBehaviour: - {fileID: 6078443173104442897, guid: 67e04b1a5e4abd9499ad7887353b3ce7, type: 3} - {fileID: 8063980341957640646, guid: c446c1690e0c42344b3ee6f7cae47912, type: 3} yup: {fileID: 276578989} + daiji: {fileID: 501862955} + shuaigan: {fileID: 501862954} + shougou: {fileID: 501862953} + animator: {fileID: 264070092} --- !u!1 &1073869858 GameObject: m_ObjectHideFlags: 0 @@ -123217,6 +123682,7 @@ MonoBehaviour: - {fileID: 21300000, guid: 0d51c73be12c2d24aa095641a55d167a, type: 3} image: {fileID: 1323905750} Aintime: 50 + index: 0 --- !u!114 &1323905750 MonoBehaviour: m_ObjectHideFlags: 0 @@ -126919,35 +127385,35 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 4284489241791779464, guid: cb107975b9c5d0340b2b96ff946e1b93, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 4284489241791779464, guid: cb107975b9c5d0340b2b96ff946e1b93, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 4284489241791779464, guid: cb107975b9c5d0340b2b96ff946e1b93, type: 3} propertyPath: m_AnchoredPosition.x - value: 284 + value: 0 objectReference: {fileID: 0} - target: {fileID: 4284489241791779464, guid: cb107975b9c5d0340b2b96ff946e1b93, type: 3} propertyPath: m_AnchoredPosition.y - value: -43 + value: 0 objectReference: {fileID: 0} - target: {fileID: 4284489241841894086, guid: cb107975b9c5d0340b2b96ff946e1b93, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 4284489241841894086, guid: cb107975b9c5d0340b2b96ff946e1b93, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 4284489241841894086, guid: cb107975b9c5d0340b2b96ff946e1b93, type: 3} propertyPath: m_AnchoredPosition.x - value: 428 + value: 0 objectReference: {fileID: 0} - target: {fileID: 4284489241841894086, guid: cb107975b9c5d0340b2b96ff946e1b93, type: 3} propertyPath: m_AnchoredPosition.y - value: -43 + value: 0 objectReference: {fileID: 0} - target: {fileID: 4284489242025471100, guid: cb107975b9c5d0340b2b96ff946e1b93, type: 3} propertyPath: m_IsActive @@ -135513,6 +135979,7 @@ MonoBehaviour: - {fileID: 21300000, guid: 8dca143b27114174da9869a2076defee, type: 3} image: {fileID: 1456988458} Aintime: 50 + index: 0 --- !u!114 &1456988458 MonoBehaviour: m_ObjectHideFlags: 0 @@ -136951,6 +137418,7 @@ MonoBehaviour: - {fileID: 21300000, guid: 042596dfb34b76e41939d7c0fd6366de, type: 3} image: {fileID: 1469869622} Aintime: 80 + index: 0 --- !u!114 &1469869622 MonoBehaviour: m_ObjectHideFlags: 0 @@ -138612,6 +139080,7 @@ MonoBehaviour: - {fileID: 21300000, guid: be965a336dd0b554a9787c7e3a16b725, type: 3} image: {fileID: 1487684924} Aintime: 50 + index: 0 --- !u!114 &1487684924 MonoBehaviour: m_ObjectHideFlags: 0 @@ -152922,6 +153391,7 @@ MonoBehaviour: - {fileID: 21300000, guid: e1ce269e880aae8409cb432be43e1026, type: 3} image: {fileID: 1639118798} Aintime: 80 + index: 0 --- !u!114 &1639118798 MonoBehaviour: m_ObjectHideFlags: 0 @@ -160321,6 +160791,7 @@ MonoBehaviour: - {fileID: 21300000, guid: bfc56413b3f1e584a941f962b7d4aeaf, type: 3} image: {fileID: 1706984850} Aintime: 50 + index: 0 --- !u!114 &1706984850 MonoBehaviour: m_ObjectHideFlags: 0 diff --git a/meng_yao/Assets/communal/UI/SpriteAniation.cs b/meng_yao/Assets/communal/UI/SpriteAniation.cs index 3d9b443f..3dafca5a 100644 --- a/meng_yao/Assets/communal/UI/SpriteAniation.cs +++ b/meng_yao/Assets/communal/UI/SpriteAniation.cs @@ -13,8 +13,11 @@ public class SpriteAniation : MonoBehaviour public Image image; [Header("֡ʱ¼ä,µ¥Î»ºÁÃ룬ĬÈÏ100")] public float Aintime=100f; - private int index=0; - + public int index=0; + private void OnEnable() + { + index = 0; + } // Start is called before the first frame update void Start() { diff --git a/meng_yao/Assets/script/scene_Main/Thebestfishman/WebJoinroom.cs b/meng_yao/Assets/script/scene_Main/Thebestfishman/WebJoinroom.cs index 0c3f67ac..2f3ab02b 100644 --- a/meng_yao/Assets/script/scene_Main/Thebestfishman/WebJoinroom.cs +++ b/meng_yao/Assets/script/scene_Main/Thebestfishman/WebJoinroom.cs @@ -9,6 +9,7 @@ using Newtonsoft.Json; using UnityEngine.UI; using System.Net; using System.Reflection; +using DG.Tweening; public class WebJoinroom : MonoBehaviour { private ClientWebSocket _webSocket; @@ -28,6 +29,10 @@ public class WebJoinroom : MonoBehaviour FishJoinroomData fishJoinroomData; public GameObject[] yu; public GameObject yup; + public GameObject daiji; + public GameObject shuaigan; + public GameObject shougou; + public Animator animator; private async void Start() { TimeText.gameObject.transform.parent.gameObject.SetActive(false); @@ -42,15 +47,21 @@ public class WebJoinroom : MonoBehaviour }); Fishing.onClick.AddListener(() => { - + animator.enabled = true; + if (count >= 1) + { + fish(); // 递归调用 + } - fish(); - }); // 调用å‘é€æ–¹æ³• await SendJsonMessage("{ \"code\": \"FISHING\", \"content\": \"{\\\"action\\\":\\\"INFO\\\"}\" }"); - + daiji.SetActive(false); + shuaigan.SetActive(true); + await Task.Delay(1800); + daiji.SetActive(true); + shuaigan.SetActive(false); //await SendJsonMessage("{ \"code\": \"FISHING\", \"content\": \"{\\\"action\\\":\\\"FISHING\\\"}\" }"); //await SendJsonMessage("{\"code\": \"BALANCE\"}"); } @@ -119,10 +130,10 @@ public class WebJoinroom : MonoBehaviour Debug.Log($"剩余数é‡: {fishResponse.data.surplus_count}"); intro_text.text = fishResponse.data.intro_text; Debug.Log($"玩法介ç»: {fishResponse.data.intro_text}"); - Vector3 point1 = new Vector3(-500, 0, 150); - Vector3 point2 = new Vector3(500, 0, -300); - Vector3 point3 = new Vector3(500, 0, 150); - Vector3 point4 = new Vector3(-500, 0, -300); + Vector3 point1 = new Vector3(-500, 100, 500); + Vector3 point2 = new Vector3(500, 100, -300); + Vector3 point3 = new Vector3(500, -100, 500); + Vector3 point4 = new Vector3(-500, -100, -300); // 计算矩形区域的最å°å€¼å’Œæœ€å¤§å€¼ float minX = Mathf.Min(point1.x, point2.x, point3.x, point4.x); @@ -172,7 +183,7 @@ public class WebJoinroom : MonoBehaviour // 解æžæ¶ˆæ¯ä¸º Fishresponse 对象 Fishingresponse fishResponse2 = JsonConvert.DeserializeObject(message); - Promptmgr.Instance.PromptBubble(fishResponse2.message); + //Promptmgr.Instance.PromptBubble(fishResponse2.message); // 检查是å¦æˆåŠŸååºåˆ—化 if (fishResponse2 != null && fishResponse2.data != null) { @@ -185,7 +196,8 @@ public class WebJoinroom : MonoBehaviour Debug.Log($"ä½™é¢: {fishResponse2.data.prize.id}"); Debug.Log($"ä½™é¢: {fishResponse2.data.prize.name}"); Debug.Log($"ä½™é¢: {fishResponse2.data.prize.type}"); - foreach(var item in fishJoinroomData.items) + fishmove(fishResponse2.data.prize.id); + foreach (var item in fishJoinroomData.items) { if(fishResponse2.data.prize.id==item.id) { @@ -216,24 +228,55 @@ public class WebJoinroom : MonoBehaviour } public async void fish() { - TimeText.gameObject.transform.parent.gameObject.SetActive(true); remainingTime = 5f; + Tourubtn.onClick.RemoveAllListeners(); + + // éšè—å¾…æœºå’Œæ˜¾ç¤ºæ”¶è´­çŠ¶æ€ + daiji.SetActive(false); + shougou.SetActive(true); + TimeText.gameObject.transform.parent.gameObject.SetActive(true); + + + // 生æˆä¸€ä¸ªéšæœºæ—¶é—´ï¼Œå‡è®¾åœ¨ 1 到 5 秒之间 float randomDelay = UnityEngine.Random.Range(1f, 5f); - + // æ›´æ–° Aintime,æ¯æ¬¡é€’归时都é‡æ–°è®¡ç®— + var spriteAniation = shougou.GetComponent(); + spriteAniation.Aintime = randomDelay * 1000 / spriteAniation.sprites.Count; + remainingTime = randomDelay; // 延迟éšæœºæ—¶é—´ - await Task.Delay(TimeSpan.FromSeconds(randomDelay)); + await Task.Delay(TimeSpan.FromSeconds(randomDelay)/2); // 延迟结æŸåŽå‘é€æ¶ˆæ¯ await SendJsonMessage("{ \"code\": \"FISHING\", \"content\": \"{\\\"action\\\":\\\"FISHING\\\"}\" }"); - TimeText.gameObject.transform.parent.gameObject.SetActive(false); remainingTime = 0f; + + TimeText.gameObject.transform.parent.gameObject.SetActive(false); + remainingTime = 0f; + + + + // 等待 3 秒åŽç»§ç»­é€’å½’ + await Task.Delay(5000); + Debug.Log("消æ¯å·²å‘é€"); - if(count>=1) + + // 如果 count >= 1,则继续递归调用 + if (count >= 1) { - fish(); + fish(); // 递归调用 + } + else + { + Tourubtn.onClick.AddListener(async () => + { + await SendJsonMessage(1); + }); + animator.enabled = false; + animator.gameObject.transform.eulerAngles = Vector3.zero; } } + public async Task SendJsonMessage(int count) { if (_webSocket == null || _webSocket.State != WebSocketState.Open) @@ -316,7 +359,27 @@ public class WebJoinroom : MonoBehaviour } - + public void fishmove(int id) + { + float liftHeight = 300f; // åŠèµ·çš„高度 + float liftDuration = 2f; // åŠèµ·åŠ¨ç”»çš„æŒç»­æ—¶é—´ + float shakeStrength = 1f; // 摇动的强度 + float shakeDuration = 0.3f; // 摇动æŒç»­æ—¶é—´ + + GameObject ob = Instantiate(yu[id]); + ob.transform.SetParent(transform, false); + ob.transform.localPosition = new Vector3(-45, 200, 0); + Vector3 initialPosition = transform.position; + ob.transform.DOMoveY(1800, liftDuration) + .SetEase(Ease.OutSine) // 使用缓动函数让鱼上å‡æ›´åŠ è‡ªç„¶ + .OnComplete(() => + { + // 动画完æˆåŽï¼Œæ·»åŠ ä¸€ç‚¹éœ‡åŠ¨æ•ˆæžœï¼Œæ¨¡æ‹Ÿé±¼çš„挣扎 + transform.DOShakePosition(shakeDuration, shakeStrength, 10, 90, false, true) + .OnKill(() => Debug.Log("鱼被åŠèµ·çš„动画完æˆï¼")); + }); + Destroy(ob,1.5f); + } diff --git a/meng_yao/Assets/script/scene_Main/Thebestfishman/shougou.cs b/meng_yao/Assets/script/scene_Main/Thebestfishman/shougou.cs new file mode 100644 index 00000000..76a1cc7e --- /dev/null +++ b/meng_yao/Assets/script/scene_Main/Thebestfishman/shougou.cs @@ -0,0 +1,25 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +public class shougou : MonoBehaviour +{ + public SpriteAniation SpriteAniation; + public GameObject daiji; + // Start is called before the first frame update + void Start() + { + + } + + // Update is called once per frame + void Update() + { + if(SpriteAniation.index>=24) + { + this.gameObject.SetActive(false); + daiji.gameObject.SetActive(true); + SpriteAniation.index = 0; + } + } +} diff --git a/meng_yao/Assets/script/scene_Main/Thebestfishman/shougou.cs.meta b/meng_yao/Assets/script/scene_Main/Thebestfishman/shougou.cs.meta new file mode 100644 index 00000000..ccc78472 --- /dev/null +++ b/meng_yao/Assets/script/scene_Main/Thebestfishman/shougou.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 0cb7141c079d45044a727466bb73fedd +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: