From 8f8fe800d2624967f2f643a373e4c92b50ed2d6f 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: Wed, 27 Nov 2024 18:53:41 +0800 Subject: [PATCH] add --- TheStrongestSnail/Assets/Scenes/RacingPanel.unity | 14 +++++++++----- .../Assets/Scripts/RacingPanel/snailRider.cs | 5 ++--- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/TheStrongestSnail/Assets/Scenes/RacingPanel.unity b/TheStrongestSnail/Assets/Scenes/RacingPanel.unity index aa9b01a..95056d7 100644 --- a/TheStrongestSnail/Assets/Scenes/RacingPanel.unity +++ b/TheStrongestSnail/Assets/Scenes/RacingPanel.unity @@ -2711,7 +2711,7 @@ MonoBehaviour: - {fileID: 21300000, guid: 2eef400844839c5449beeefe4f46e352, type: 3} startingPoint: {fileID: 532751784} end: {fileID: 98816691} - is_victory: 0 + is_victory: 1 is_die: 0 --- !u!61 &219934845 BoxCollider2D: @@ -5692,7 +5692,7 @@ MonoBehaviour: - {fileID: 21300000, guid: 2eef400844839c5449beeefe4f46e352, type: 3} startingPoint: {fileID: 1966002263} end: {fileID: 879993540} - is_victory: 0 + is_victory: 1 is_die: 0 --- !u!61 &435022347 BoxCollider2D: @@ -6763,7 +6763,7 @@ MonoBehaviour: startingPoint: {fileID: 1363431408} end: {fileID: 869027439} is_victory: 0 - is_die: 1 + is_die: 0 --- !u!61 &540447345 BoxCollider2D: m_ObjectHideFlags: 0 @@ -9838,7 +9838,7 @@ MonoBehaviour: - {fileID: 21300000, guid: 2eef400844839c5449beeefe4f46e352, type: 3} startingPoint: {fileID: 1852265332} end: {fileID: 130002006} - is_victory: 0 + is_victory: 1 is_die: 0 --- !u!61 &890850302 BoxCollider2D: @@ -18615,7 +18615,7 @@ MonoBehaviour: - {fileID: 21300000, guid: 2eef400844839c5449beeefe4f46e352, type: 3} startingPoint: {fileID: 1812578927} end: {fileID: 1418546006} - is_victory: 0 + is_victory: 1 is_die: 0 --- !u!61 &1591901238 BoxCollider2D: @@ -25096,5 +25096,9 @@ PrefabInstance: propertyPath: m_Name value: Image objectReference: {fileID: 0} + - target: {fileID: 8641404947999652021, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3} + propertyPath: mode + value: 1 + objectReference: {fileID: 0} m_RemovedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: c20fbee9c3d60534dbeedde52a1d46e1, type: 3} diff --git a/TheStrongestSnail/Assets/Scripts/RacingPanel/snailRider.cs b/TheStrongestSnail/Assets/Scripts/RacingPanel/snailRider.cs index 1c62af6..b7e74ad 100644 --- a/TheStrongestSnail/Assets/Scripts/RacingPanel/snailRider.cs +++ b/TheStrongestSnail/Assets/Scripts/RacingPanel/snailRider.cs @@ -39,7 +39,8 @@ public class snailRider : MonoBehaviour } void startMove() { - palye.enabled = !is_die; + obj.SetActive(!is_die); + //palye.enabled = !is_die; if (!is_die) { float suiji = 0; @@ -56,8 +57,6 @@ public class snailRider : MonoBehaviour .Append(transform.DOMove(end.transform.position, 5f + suiji)) ; } - - //+UnityEngine.Random.Range(-2f, 5.0f) } private void Update() {