From c1ae0f6e2eb6e164eb861e8a2a476db307592760 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=88=92=E8=8D=A3=E6=A3=AE?= <7716842+shurongsen@user.noreply.gitee.com> Date: Tue, 26 Nov 2024 21:53:31 +0800 Subject: [PATCH] add --- TheStrongestSnail/Assets/Scenes/Test.unity | 608 ------------------ .../Scripts/Conversion/ConversionItem.cs | 2 +- .../Scripts/Conversion/DonatePanelItem.cs | 55 +- .../Assets/prefabs/Donate2Panel.prefab | 4 +- 4 files changed, 47 insertions(+), 622 deletions(-) diff --git a/TheStrongestSnail/Assets/Scenes/Test.unity b/TheStrongestSnail/Assets/Scenes/Test.unity index b75a90c..352b42d 100644 --- a/TheStrongestSnail/Assets/Scenes/Test.unity +++ b/TheStrongestSnail/Assets/Scenes/Test.unity @@ -1002,114 +1002,6 @@ PrefabInstance: m_Modification: m_TransformParent: {fileID: 887987927} m_Modifications: - - target: {fileID: 98862184663913771, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchorMax.y - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 98862184663913771, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchorMin.y - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 98862184663913771, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_SizeDelta.x - value: 1028 - objectReference: {fileID: 0} - - target: {fileID: 98862184663913771, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_SizeDelta.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 98862184663913771, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchoredPosition.x - value: 626 - objectReference: {fileID: 0} - - target: {fileID: 98862184663913771, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchoredPosition.y - value: -702.895 - objectReference: {fileID: 0} - - target: {fileID: 2539890776409641132, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchorMax.y - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 2539890776409641132, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchorMin.y - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 2539890776409641132, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_SizeDelta.x - value: 887.33 - objectReference: {fileID: 0} - - target: {fileID: 2539890776409641132, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_SizeDelta.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 2539890776409641132, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchoredPosition.x - value: 514 - objectReference: {fileID: 0} - - target: {fileID: 2539890776409641132, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchoredPosition.y - value: -212.89499 - objectReference: {fileID: 0} - - target: {fileID: 4509579860519678069, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchorMax.y - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 4509579860519678069, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchorMin.y - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 4509579860519678069, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_SizeDelta.x - value: 380 - objectReference: {fileID: 0} - - target: {fileID: 4509579860519678069, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_SizeDelta.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 4509579860519678069, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchoredPosition.x - value: 765 - objectReference: {fileID: 0} - - target: {fileID: 4509579860519678069, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchoredPosition.y - value: -25 - objectReference: {fileID: 0} - - target: {fileID: 4509579860788804178, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchorMax.y - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 4509579860788804178, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchorMin.y - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 4509579860788804178, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_SizeDelta.x - value: 162 - objectReference: {fileID: 0} - - target: {fileID: 4509579860788804178, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_SizeDelta.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 4509579860788804178, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchoredPosition.x - value: 81 - objectReference: {fileID: 0} - - target: {fileID: 4509579860788804178, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchoredPosition.y - value: -28.5 - objectReference: {fileID: 0} - - target: {fileID: 4509579862219014095, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_SizeDelta.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 4509579862240682305, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_SizeDelta.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 4509579862240682305, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_SizeDelta.y - value: 0 - objectReference: {fileID: 0} - target: {fileID: 4509579862271681876, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} propertyPath: m_Pivot.x value: 0.5 @@ -1198,505 +1090,5 @@ PrefabInstance: propertyPath: m_Name value: Donate2Panel objectReference: {fileID: 0} - - target: {fileID: 5167839042528122211, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchorMax.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 5167839042528122211, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchorMin.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 5167839042528122211, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_SizeDelta.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 5167839042528122211, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_SizeDelta.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 5167839042528122211, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchoredPosition.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 5167839042528122211, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchoredPosition.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 5167839042553029367, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchorMax.y - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 5167839042553029367, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchorMin.y - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 5167839042553029367, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_SizeDelta.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 5167839042553029367, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchoredPosition.x - value: 477.5 - objectReference: {fileID: 0} - - target: {fileID: 5167839042553029367, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchoredPosition.y - value: -158 - objectReference: {fileID: 0} - - target: {fileID: 5500841023463804857, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchorMax.y - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 5500841023463804857, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchorMin.y - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 5500841023463804857, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_SizeDelta.x - value: 584 - objectReference: {fileID: 0} - - target: {fileID: 5500841023463804857, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_SizeDelta.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 5500841023463804857, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchoredPosition.x - value: 626 - objectReference: {fileID: 0} - - target: {fileID: 5500841023463804857, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchoredPosition.y - value: -1481.79 - objectReference: {fileID: 0} - - target: {fileID: 8527512284824982100, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchorMax.y - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 8527512284824982100, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchorMin.y - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 8527512284824982100, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_SizeDelta.x - value: 575 - objectReference: {fileID: 0} - - target: {fileID: 8527512284824982100, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_SizeDelta.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 8527512284824982100, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchoredPosition.x - value: 287.5 - objectReference: {fileID: 0} - - target: {fileID: 8527512284824982100, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchoredPosition.y - value: -20.5 - objectReference: {fileID: 0} - - target: {fileID: 8527512284950670482, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchorMax.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 8527512284950670482, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchorMin.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 8527512284950670482, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_SizeDelta.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 8527512284950670482, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_SizeDelta.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 8527512284950670482, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchoredPosition.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 8527512284950670482, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchoredPosition.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 8527512285273839641, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchorMax.y - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 8527512285273839641, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchorMin.y - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 8527512285273839641, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_SizeDelta.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 8527512285273839641, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchoredPosition.x - value: 477.5 - objectReference: {fileID: 0} - - target: {fileID: 8527512285273839641, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchoredPosition.y - value: -166 - objectReference: {fileID: 0} - - target: {fileID: 8527512285289802416, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchorMax.y - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 8527512285289802416, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchorMin.y - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 8527512285289802416, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_SizeDelta.x - value: 955 - objectReference: {fileID: 0} - - target: {fileID: 8527512285289802416, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_SizeDelta.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 8527512285289802416, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchoredPosition.x - value: 514 - objectReference: {fileID: 0} - - target: {fileID: 8527512285289802416, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchoredPosition.y - value: -751.29 - objectReference: {fileID: 0} - - target: {fileID: 8527512285347044355, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchorMax.y - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 8527512285347044355, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchorMin.y - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 8527512285347044355, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_SizeDelta.x - value: 434 - objectReference: {fileID: 0} - - target: {fileID: 8527512285347044355, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_SizeDelta.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 8527512285347044355, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchoredPosition.x - value: 738 - objectReference: {fileID: 0} - - target: {fileID: 8527512285347044355, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchoredPosition.y - value: -25 - objectReference: {fileID: 0} - - target: {fileID: 8527512285372123391, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchorMax.y - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 8527512285372123391, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchorMin.y - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 8527512285372123391, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_SizeDelta.x - value: 1028 - objectReference: {fileID: 0} - - target: {fileID: 8527512285372123391, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_SizeDelta.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 8527512285372123391, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchoredPosition.x - value: 514 - objectReference: {fileID: 0} - - target: {fileID: 8527512285372123391, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchoredPosition.y - value: -184 - objectReference: {fileID: 0} - - target: {fileID: 8527512285426762084, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchorMax.y - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 8527512285426762084, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchorMin.y - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 8527512285426762084, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_SizeDelta.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 8527512285426762084, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchoredPosition.x - value: 477.5 - objectReference: {fileID: 0} - - target: {fileID: 8527512285426762084, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchoredPosition.y - value: -97 - objectReference: {fileID: 0} - - target: {fileID: 8527512285518254093, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchorMax.y - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 8527512285518254093, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchorMin.y - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 8527512285518254093, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_SizeDelta.x - value: 955 - objectReference: {fileID: 0} - - target: {fileID: 8527512285518254093, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_SizeDelta.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 8527512285518254093, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchoredPosition.x - value: 514 - objectReference: {fileID: 0} - - target: {fileID: 8527512285518254093, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchoredPosition.y - value: -466.28998 - objectReference: {fileID: 0} - - target: {fileID: 8527512285698101730, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchorMax.y - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 8527512285698101730, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchorMin.y - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 8527512285698101730, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_SizeDelta.x - value: 160 - objectReference: {fileID: 0} - - target: {fileID: 8527512285698101730, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_SizeDelta.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 8527512285698101730, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchoredPosition.x - value: 80 - objectReference: {fileID: 0} - - target: {fileID: 8527512285698101730, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchoredPosition.y - value: -28.5 - objectReference: {fileID: 0} - - target: {fileID: 8527512285705473595, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchorMax.y - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 8527512285705473595, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchorMin.y - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 8527512285705473595, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_SizeDelta.x - value: 1028 - objectReference: {fileID: 0} - - target: {fileID: 8527512285705473595, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_SizeDelta.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 8527512285705473595, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchoredPosition.x - value: 514 - objectReference: {fileID: 0} - - target: {fileID: 8527512285705473595, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchoredPosition.y - value: -1326.79 - objectReference: {fileID: 0} - - target: {fileID: 8527512285719865305, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchorMax.y - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 8527512285719865305, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchorMin.y - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 8527512285719865305, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_SizeDelta.x - value: 521 - objectReference: {fileID: 0} - - target: {fileID: 8527512285719865305, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_SizeDelta.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 8527512285719865305, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchoredPosition.x - value: 260.5 - objectReference: {fileID: 0} - - target: {fileID: 8527512285719865305, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchoredPosition.y - value: -20.5 - objectReference: {fileID: 0} - - target: {fileID: 8527512285780996327, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchorMax.y - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 8527512285780996327, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchorMin.y - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 8527512285780996327, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_SizeDelta.x - value: 1028 - objectReference: {fileID: 0} - - target: {fileID: 8527512285780996327, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_SizeDelta.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 8527512285780996327, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchoredPosition.x - value: 514 - objectReference: {fileID: 0} - - target: {fileID: 8527512285780996327, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchoredPosition.y - value: -1059.79 - objectReference: {fileID: 0} - - target: {fileID: 8527512285964550182, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchorMax.y - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 8527512285964550182, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchorMin.y - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 8527512285964550182, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_SizeDelta.x - value: 1028 - objectReference: {fileID: 0} - - target: {fileID: 8527512285964550182, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_SizeDelta.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 8527512285964550182, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchoredPosition.x - value: 514 - objectReference: {fileID: 0} - - target: {fileID: 8527512285964550182, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchoredPosition.y - value: -28.5 - objectReference: {fileID: 0} - - target: {fileID: 8527512285984923172, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchorMax.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 8527512285984923172, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchorMin.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 8527512285984923172, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchoredPosition.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 8527512285984923172, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchoredPosition.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 8527512286007179839, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchorMax.y - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 8527512286007179839, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchorMin.y - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 8527512286007179839, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_SizeDelta.x - value: 955 - objectReference: {fileID: 0} - - target: {fileID: 8527512286007179839, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_SizeDelta.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 8527512286007179839, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchoredPosition.x - value: 514 - objectReference: {fileID: 0} - - target: {fileID: 8527512286007179839, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchoredPosition.y - value: -1246.29 - objectReference: {fileID: 0} - - target: {fileID: 8527512286273835627, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchorMax.y - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 8527512286273835627, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchorMin.y - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 8527512286273835627, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_SizeDelta.x - value: 453 - objectReference: {fileID: 0} - - target: {fileID: 8527512286273835627, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_SizeDelta.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 8527512286273835627, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchoredPosition.x - value: 728.5 - objectReference: {fileID: 0} - - target: {fileID: 8527512286273835627, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchoredPosition.y - value: -25 - objectReference: {fileID: 0} - - target: {fileID: 8527512286294770289, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchorMax.y - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 8527512286294770289, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchorMin.y - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 8527512286294770289, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_SizeDelta.x - value: 502 - objectReference: {fileID: 0} - - target: {fileID: 8527512286294770289, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_SizeDelta.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 8527512286294770289, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchoredPosition.x - value: 251 - objectReference: {fileID: 0} - - target: {fileID: 8527512286294770289, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchoredPosition.y - value: -25 - objectReference: {fileID: 0} - - target: {fileID: 8527512286296714399, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchorMax.y - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 8527512286296714399, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchorMin.y - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 8527512286296714399, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_SizeDelta.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 8527512286296714399, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchoredPosition.x - value: 477.5 - objectReference: {fileID: 0} - - target: {fileID: 8527512286296714399, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchoredPosition.y - value: -158 - objectReference: {fileID: 0} - - target: {fileID: 8527512286632757263, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchorMax.y - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 8527512286632757263, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchorMin.y - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 8527512286632757263, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_SizeDelta.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 8527512286632757263, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchoredPosition.x - value: 477.5 - objectReference: {fileID: 0} - - target: {fileID: 8527512286632757263, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} - propertyPath: m_AnchoredPosition.y - value: -28 - objectReference: {fileID: 0} m_RemovedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: 54a9ec38d2fa7ad4aba7938e3016e96c, type: 3} diff --git a/TheStrongestSnail/Assets/Scripts/Conversion/ConversionItem.cs b/TheStrongestSnail/Assets/Scripts/Conversion/ConversionItem.cs index 0e8d1c6..b4ccd50 100644 --- a/TheStrongestSnail/Assets/Scripts/Conversion/ConversionItem.cs +++ b/TheStrongestSnail/Assets/Scripts/Conversion/ConversionItem.cs @@ -50,7 +50,7 @@ public class ConversionItem : BaseUIPanel ShellToEgg = 0,//ÎÏ¿ÇתÎϵ° EggToShell = 1//Îϵ°×ªÎÏ¿Ç } - private void Update() + private void FixedUpdate() { if (mymode == mode.ShellToEgg) { diff --git a/TheStrongestSnail/Assets/Scripts/Conversion/DonatePanelItem.cs b/TheStrongestSnail/Assets/Scripts/Conversion/DonatePanelItem.cs index 4d790ec..a1798b3 100644 --- a/TheStrongestSnail/Assets/Scripts/Conversion/DonatePanelItem.cs +++ b/TheStrongestSnail/Assets/Scripts/Conversion/DonatePanelItem.cs @@ -10,6 +10,7 @@ public class DonatePanelItem : BaseUIPanel public TMP_InputField Recipient; public TMP_InputField GiftQuantity; public Text NumberOfFreeSnailShells; + public GameObject voluteCoinObj; public Text Fees; public Text Total; public Button Button; @@ -18,36 +19,66 @@ public class DonatePanelItem : BaseUIPanel GiftQuantity.onValueChanged.AddListener(GiftQuantityData); Button.onClick.AddListener(buttonOnClick); - testLogo(); + //testLogo(); } public class voluteCoinItem { public string toCuteNo; public int voluteCoin; } + public mode mymode = mode.voluteCoin; + public enum mode{ + voluteCoin = 0,//ÔùËÍÎÏ¿Ç + slot = 1//ÔùËÍ + } + private void FixedUpdate() + { + if (mymode == mode.voluteCoin) + { + voluteCoinObj.SetActive(true); + } + else + { + voluteCoinObj.SetActive(false); + } + } async void buttonOnClick() { - voluteCoinItem body = new voluteCoinItem(); - body.toCuteNo = Recipient.text; - body.voluteCoin = int.Parse(GiftQuantity.text); - string response = await web.SendRequest(web.URL + "/snail/transfer/voluteCoin", "POST", JsonUtility.ToJson(body), testhead);//²âÊÔ + string response = "";//²âÊÔ + if (mymode == mode.voluteCoin) + { + string body = "{\"toCuteNo\":" + (int.Parse(Recipient.text)).ToString() + ",\"voluteCoin\":" + GiftQuantity.text + "}"; + response = await web.SendRequest(web.URL + "/snail/transfer/voluteCoin", "POST", body, Global.global.CreateHeaders()); + } + else + { + string body = "{\"toCuteNo\":" + (int.Parse(Recipient.text)).ToString() + ",\"slotId\":" + GiftQuantity.text + "}"; + response = await web.SendRequest(web.URL + "/snail/transfer/slot", "POST", body, Global.global.CreateHeaders()); + } ServerResponse18 serverResponse = JsonConvert.DeserializeObject(response); if (serverResponse.code != 200) { addEventPopUp(serverResponse.message); } - Destroy(gameObject); } async void GiftQuantityData(string userInput) { - NumberOfFreeSnailShells.text = userInput; - await ButtonClickAnimationAsync(NumberOfFreeSnailShells.gameObject, 1.05f); - Fees.text = (int.Parse(userInput) * 0.08).ToString(); - await ButtonClickAnimationAsync(Fees.gameObject, 1.05f); - Total.text = (int.Parse(userInput) + (int.Parse(userInput) * 0.08)).ToString(); - await ButtonClickAnimationAsync(Total.gameObject, 1.05f); + if (mymode == mode.voluteCoin) + { + if (string.IsNullOrWhiteSpace(userInput)) + { + userInput = "0"; + } + NumberOfFreeSnailShells.text = userInput; + await ButtonClickAnimationAsync(NumberOfFreeSnailShells.gameObject, 1.05f); + Fees.text = (int.Parse(userInput) * 0.08).ToString(); + await ButtonClickAnimationAsync(Fees.gameObject, 1.05f); + Total.text = (int.Parse(userInput) + (int.Parse(userInput) * 0.08)).ToString(); + await ButtonClickAnimationAsync(Total.gameObject, 1.05f); + } + } } diff --git a/TheStrongestSnail/Assets/prefabs/Donate2Panel.prefab b/TheStrongestSnail/Assets/prefabs/Donate2Panel.prefab index 38d7177..e59d82a 100644 --- a/TheStrongestSnail/Assets/prefabs/Donate2Panel.prefab +++ b/TheStrongestSnail/Assets/prefabs/Donate2Panel.prefab @@ -1322,9 +1322,11 @@ MonoBehaviour: Recipient: {fileID: 5167839042553029366} GiftQuantity: {fileID: 8527512286296714387} NumberOfFreeSnailShells: {fileID: 4509579860519678074} + voluteCoinObj: {fileID: 8527512285780996326} Fees: {fileID: 8527512285347044353} Total: {fileID: 8527512286273835625} Button: {fileID: 3364760182085171127} + mymode: 0 --- !u!1 &5167839042247917623 GameObject: m_ObjectHideFlags: 0 @@ -3359,7 +3361,7 @@ GameObject: - component: {fileID: 8527512285780996325} - component: {fileID: 8527512285780996324} m_Layer: 5 - m_Name: GameObject (3) + m_Name: voluteCoinObj m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0