失败的修bug

This commit is contained in:
wulongxiao 2025-01-07 20:37:01 +08:00
parent 365c0fb54c
commit b5a5871747
2 changed files with 60 additions and 55 deletions

View File

@ -352,7 +352,7 @@ GameObject:
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 0
m_IsActive: 1
--- !u!224 &8006589461591264238
RectTransform:
m_ObjectHideFlags: 0
@ -1163,9 +1163,9 @@ RectTransform:
m_Father: {fileID: 1528554777395831116}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 540, y: -62.5}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 855, y: 85}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &3249479357013988653
@ -1520,6 +1520,7 @@ MonoBehaviour:
failur: {fileID: 714296075271660652}
LoadPrefab: {fileID: 6870665346359048685, guid: 6839835fa4bd9ee4082efffc9eccc703, type: 3}
retrunBTN: {fileID: 1611523547142466811}
retrunBTN2: {fileID: 1206893118731475948}
--- !u!1 &1660446482787393010
GameObject:
m_ObjectHideFlags: 0
@ -1991,10 +1992,10 @@ RectTransform:
m_Father: {fileID: 722927743372136565}
m_RootOrder: 3
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 540, y: -1670}
m_SizeDelta: {x: 1080, y: 500}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &7538520461402380887
MonoBehaviour:
@ -2923,10 +2924,10 @@ RectTransform:
m_Father: {fileID: 8006589461591264238}
m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 540, y: -1670}
m_SizeDelta: {x: 1080, y: 500}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &354357089242184695
MonoBehaviour:
@ -2981,10 +2982,10 @@ RectTransform:
m_Father: {fileID: 1197153813601434686}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 142.5, y: -42.5}
m_SizeDelta: {x: 285, y: 85}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &8649767513360476145
MonoBehaviour:
@ -3265,10 +3266,10 @@ RectTransform:
m_Father: {fileID: 8006589461591264238}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 540, y: -1010}
m_SizeDelta: {x: 1080, y: 820}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &9085061639263524554
MonoBehaviour:
@ -3418,7 +3419,7 @@ RectTransform:
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 300}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0, y: 1}
--- !u!114 &3331149786316995070
MonoBehaviour:
@ -3494,10 +3495,10 @@ RectTransform:
m_Father: {fileID: 722927743372136565}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 540, y: -1010}
m_SizeDelta: {x: 1080, y: 820}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &4859758159910522684
MonoBehaviour:
@ -3551,7 +3552,7 @@ GameObject:
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
m_IsActive: 0
--- !u!224 &722927743372136565
RectTransform:
m_ObjectHideFlags: 0
@ -4215,10 +4216,10 @@ RectTransform:
m_Father: {fileID: 722927743372136565}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 540, y: -300}
m_SizeDelta: {x: 1080, y: 600}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1415287702082768728
MonoBehaviour:
@ -4353,10 +4354,10 @@ RectTransform:
m_Father: {fileID: 1197153813601434686}
m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 712.5, y: -42.5}
m_SizeDelta: {x: 285, y: 85}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &6682613250208857583
MonoBehaviour:
@ -4411,10 +4412,10 @@ RectTransform:
m_Father: {fileID: 1197153813601434686}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 427.5, y: -42.5}
m_SizeDelta: {x: 285, y: 85}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1417784952648396443
MonoBehaviour:
@ -4551,10 +4552,10 @@ RectTransform:
m_Father: {fileID: 8006589461591264238}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 540, y: -300}
m_SizeDelta: {x: 1080, y: 600}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &7581035644706085323
MonoBehaviour:
@ -4685,7 +4686,7 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 5129451449518912811, guid: 50872d106f73c4649a7b6daf601794e5, type: 3}
propertyPath: m_AnchorMax.y
value: 0
value: 1
objectReference: {fileID: 0}
- target: {fileID: 5129451449518912811, guid: 50872d106f73c4649a7b6daf601794e5, type: 3}
propertyPath: m_AnchorMin.x
@ -4693,15 +4694,15 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 5129451449518912811, guid: 50872d106f73c4649a7b6daf601794e5, type: 3}
propertyPath: m_AnchorMin.y
value: 0
value: 1
objectReference: {fileID: 0}
- target: {fileID: 5129451449518912811, guid: 50872d106f73c4649a7b6daf601794e5, type: 3}
propertyPath: m_SizeDelta.x
value: 0
value: 166
objectReference: {fileID: 0}
- target: {fileID: 5129451449518912811, guid: 50872d106f73c4649a7b6daf601794e5, type: 3}
propertyPath: m_SizeDelta.y
value: 0
value: 166
objectReference: {fileID: 0}
- target: {fileID: 5129451449518912811, guid: 50872d106f73c4649a7b6daf601794e5, type: 3}
propertyPath: m_LocalPosition.x
@ -4733,11 +4734,11 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 5129451449518912811, guid: 50872d106f73c4649a7b6daf601794e5, type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
value: 208
objectReference: {fileID: 0}
- target: {fileID: 5129451449518912811, guid: 50872d106f73c4649a7b6daf601794e5, type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
value: -116
objectReference: {fileID: 0}
- target: {fileID: 5129451449518912811, guid: 50872d106f73c4649a7b6daf601794e5, type: 3}
propertyPath: m_LocalEulerAnglesHint.x

View File

@ -10,6 +10,7 @@ public class Challeng_Evictory : Base
public GameObject failur;
public GameObject LoadPrefab;
public Button retrunBTN;
public Button retrunBTN2;
private void Awake()
{
@ -19,6 +20,9 @@ public class Challeng_Evictory : Base
retrunBTN.onClick.AddListener(() => {
Instantiate(LoadPrefab, GameObject.Find("Canvas").transform).GetComponent<loadingPanel>().SceneIndex = 1;
});
retrunBTN2.onClick.AddListener(() => {
Instantiate(LoadPrefab, GameObject.Find("Canvas").transform).GetComponent<loadingPanel>().SceneIndex = 1;
});
}
@ -32,7 +36,6 @@ public class Challeng_Evictory : Base
await Task.Delay(200);
await Init();
if (TorF)
{
Victory.SetActive(true);
@ -43,6 +46,7 @@ public class Challeng_Evictory : Base
failur.SetActive(true);
await ButtonClickAnimationAsync(failur, 0.8f, 0.6f);
}
gameGlobal.GameStop();
}