This commit is contained in:
舒荣森 2024-11-27 18:53:41 +08:00
parent 2e749abee0
commit 8f8fe800d2
2 changed files with 11 additions and 8 deletions

View File

@ -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}

View File

@ -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()
{