修复几个Bug

This commit is contained in:
DESKTOP-SAJ6RKV\Administrator 2025-05-19 17:28:34 +08:00
parent 0d21f29af3
commit 7abf22e632
19 changed files with 28 additions and 36 deletions

View File

@ -59,7 +59,7 @@ RectTransform:
m_PrefabInstance: {fileID: 0} m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 184672823821139294} m_GameObject: {fileID: 184672823821139294}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1} m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
@ -69,12 +69,12 @@ RectTransform:
- {fileID: 4214133391535205399} - {fileID: 4214133391535205399}
- {fileID: 7553640713918008100} - {fileID: 7553640713918008100}
- {fileID: 4424235173735084240} - {fileID: 4424235173735084240}
m_Father: {fileID: 2338385386102721414} m_Father: {fileID: 1508900408836313865}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0} m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1} m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: 0} m_AnchoredPosition: {x: 0.75, y: 0.2857666}
m_SizeDelta: {x: 0, y: 0} m_SizeDelta: {x: -1.5, y: -0.5715332}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &202483145928531018 --- !u!1 &202483145928531018
GameObject: GameObject:
@ -748,7 +748,7 @@ MonoBehaviour:
m_EditorClassIdentifier: m_EditorClassIdentifier:
m_Material: {fileID: 2100000, guid: ba88c9b94cf65ec40b95f6b0a859e29d, type: 2} m_Material: {fileID: 2100000, guid: ba88c9b94cf65ec40b95f6b0a859e29d, type: 2}
m_Color: {r: 0.10196078, g: 0.1809915, b: 1, a: 1} m_Color: {r: 0.10196078, g: 0.1809915, b: 1, a: 1}
m_RaycastTarget: 1 m_RaycastTarget: 0
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1 m_Maskable: 1
m_OnCullStateChanged: m_OnCullStateChanged:
@ -25995,9 +25995,6 @@ RectTransform:
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
m_Children: m_Children:
- {fileID: 1508900408836313865} - {fileID: 1508900408836313865}
- {fileID: 4982030497614920511}
- {fileID: 3736817874055198994}
- {fileID: 6033434420635246474}
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0} m_AnchorMin: {x: 0, y: 0}
@ -35996,7 +35993,7 @@ RectTransform:
m_PrefabInstance: {fileID: 0} m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2423690419254802813} m_GameObject: {fileID: 2423690419254802813}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1} m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
@ -36006,12 +36003,12 @@ RectTransform:
- {fileID: 4639531916980255452} - {fileID: 4639531916980255452}
- {fileID: 2397591265962526211} - {fileID: 2397591265962526211}
- {fileID: 259592695359127055} - {fileID: 259592695359127055}
m_Father: {fileID: 2338385386102721414} m_Father: {fileID: 1508900408836313865}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0} m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1} m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: 0} m_AnchoredPosition: {x: 0.75, y: 0.2857666}
m_SizeDelta: {x: 0, y: 0} m_SizeDelta: {x: -1.5, y: -0.5715332}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &2593143868542972836 --- !u!1 &2593143868542972836
GameObject: GameObject:
@ -36147,7 +36144,7 @@ MonoBehaviour:
m_EditorClassIdentifier: m_EditorClassIdentifier:
m_Material: {fileID: 2100000, guid: 560d72cd131afef4ba7ce6807c70b435, type: 2} m_Material: {fileID: 2100000, guid: 560d72cd131afef4ba7ce6807c70b435, type: 2}
m_Color: {r: 1, g: 1, b: 1, a: 0.34509805} m_Color: {r: 1, g: 1, b: 1, a: 0.34509805}
m_RaycastTarget: 1 m_RaycastTarget: 0
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1 m_Maskable: 1
m_OnCullStateChanged: m_OnCullStateChanged:
@ -36531,6 +36528,9 @@ RectTransform:
m_LocalScale: {x: 1, y: 1, z: 1} m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
m_Children: m_Children:
- {fileID: 4982030497614920511}
- {fileID: 3736817874055198994}
- {fileID: 6033434420635246474}
- {fileID: 2090319480340751313} - {fileID: 2090319480340751313}
- {fileID: 245133209852100473} - {fileID: 245133209852100473}
- {fileID: 6282578790962902355} - {fileID: 6282578790962902355}
@ -76567,7 +76567,7 @@ MonoBehaviour:
m_EditorClassIdentifier: m_EditorClassIdentifier:
m_Material: {fileID: 2100000, guid: ba88c9b94cf65ec40b95f6b0a859e29d, type: 2} m_Material: {fileID: 2100000, guid: ba88c9b94cf65ec40b95f6b0a859e29d, type: 2}
m_Color: {r: 0.10196078, g: 0.5656291, b: 1, a: 1} m_Color: {r: 0.10196078, g: 0.5656291, b: 1, a: 1}
m_RaycastTarget: 1 m_RaycastTarget: 0
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1 m_Maskable: 1
m_OnCullStateChanged: m_OnCullStateChanged:
@ -76606,7 +76606,7 @@ RectTransform:
m_PrefabInstance: {fileID: 0} m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7031927170101600824} m_GameObject: {fileID: 7031927170101600824}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1} m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
@ -76616,12 +76616,12 @@ RectTransform:
- {fileID: 6045065208568952750} - {fileID: 6045065208568952750}
- {fileID: 8059303560156873943} - {fileID: 8059303560156873943}
- {fileID: 6120632717750543533} - {fileID: 6120632717750543533}
m_Father: {fileID: 2338385386102721414} m_Father: {fileID: 1508900408836313865}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0} m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1} m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: 0} m_AnchoredPosition: {x: 0.75, y: 0.2857666}
m_SizeDelta: {x: 0, y: 0} m_SizeDelta: {x: -1.5, y: -0.5715332}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &7280053383048790945 --- !u!1 &7280053383048790945
GameObject: GameObject:
@ -76682,7 +76682,7 @@ MonoBehaviour:
m_EditorClassIdentifier: m_EditorClassIdentifier:
m_Material: {fileID: 2100000, guid: ba88c9b94cf65ec40b95f6b0a859e29d, type: 2} m_Material: {fileID: 2100000, guid: ba88c9b94cf65ec40b95f6b0a859e29d, type: 2}
m_Color: {r: 1, g: 0.4690413, b: 0.103773475, a: 1} m_Color: {r: 1, g: 0.4690413, b: 0.103773475, a: 1}
m_RaycastTarget: 1 m_RaycastTarget: 0
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1 m_Maskable: 1
m_OnCullStateChanged: m_OnCullStateChanged:
@ -86832,7 +86832,7 @@ MonoBehaviour:
m_EditorClassIdentifier: m_EditorClassIdentifier:
m_Material: {fileID: 2100000, guid: ba88c9b94cf65ec40b95f6b0a859e29d, type: 2} m_Material: {fileID: 2100000, guid: ba88c9b94cf65ec40b95f6b0a859e29d, type: 2}
m_Color: {r: 0.10196078, g: 0.30715278, b: 1, a: 1} m_Color: {r: 0.10196078, g: 0.30715278, b: 1, a: 1}
m_RaycastTarget: 1 m_RaycastTarget: 0
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1 m_Maskable: 1
m_OnCullStateChanged: m_OnCullStateChanged:

View File

@ -2058,7 +2058,7 @@ GameObject:
m_Icon: {fileID: 0} m_Icon: {fileID: 0}
m_NavMeshLayer: 0 m_NavMeshLayer: 0
m_StaticEditorFlags: 0 m_StaticEditorFlags: 0
m_IsActive: 1 m_IsActive: 0
--- !u!224 &8197620294860182702 --- !u!224 &8197620294860182702
RectTransform: RectTransform:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0

View File

@ -15,6 +15,9 @@ namespace GameLogic
class UIGameBattle : UIWindow class UIGameBattle : UIWindow
{ {
#region #region
private RectTransform m_rectSdx;
private RectTransform m_rectSceneFx;
private RectTransform m_rectSpeed;
private RectTransform m_rectBgList; private RectTransform m_rectBgList;
private Image m_img_BT; private Image m_img_BT;
private TextMeshProUGUI m_tmpTimer; private TextMeshProUGUI m_tmpTimer;
@ -33,11 +36,11 @@ namespace GameLogic
private TextMeshProUGUI m_tmpCount; private TextMeshProUGUI m_tmpCount;
private RawImage m_rimg_ViewTexture; private RawImage m_rimg_ViewTexture;
private VideoPlayer m_video_Video; private VideoPlayer m_video_Video;
private RectTransform m_rectSdx;
private RectTransform m_rectSceneFx;
private RectTransform m_rectSpeed;
protected override void ScriptGenerator() protected override void ScriptGenerator()
{ {
m_rectSdx = FindChildComponent<RectTransform>("Bg/m_rectSdx");
m_rectSceneFx = FindChildComponent<RectTransform>("Bg/m_rectSceneFx");
m_rectSpeed = FindChildComponent<RectTransform>("Bg/m_rectSpeed");
m_rectBgList = FindChildComponent<RectTransform>("Bg/m_rectBgList"); m_rectBgList = FindChildComponent<RectTransform>("Bg/m_rectBgList");
m_img_BT = FindChildComponent<Image>("Bg/Top/m_img_BT"); m_img_BT = FindChildComponent<Image>("Bg/Top/m_img_BT");
m_tmpTimer = FindChildComponent<TextMeshProUGUI>("Bg/Top/m_img_BT/m_tmpTimer"); m_tmpTimer = FindChildComponent<TextMeshProUGUI>("Bg/Top/m_img_BT/m_tmpTimer");
@ -56,9 +59,6 @@ namespace GameLogic
m_tmpCount = FindChildComponent<TextMeshProUGUI>("Bg/m_rect_GiftPanel/GiftItem/Item/m_tmpCount"); m_tmpCount = FindChildComponent<TextMeshProUGUI>("Bg/m_rect_GiftPanel/GiftItem/Item/m_tmpCount");
m_rimg_ViewTexture = FindChildComponent<RawImage>("Bg/BattleBg/m_rimg_ViewTexture"); m_rimg_ViewTexture = FindChildComponent<RawImage>("Bg/BattleBg/m_rimg_ViewTexture");
m_video_Video = FindChildComponent<VideoPlayer>("Bg/BattleBg/m_video_Video"); m_video_Video = FindChildComponent<VideoPlayer>("Bg/BattleBg/m_video_Video");
m_rectSdx = FindChildComponent<RectTransform>("m_rectSdx");
m_rectSceneFx = FindChildComponent<RectTransform>("m_rectSceneFx");
m_rectSpeed = FindChildComponent<RectTransform>("m_rectSpeed");
m_btnSetting.onClick.AddListener(OnClickSettingBtn); m_btnSetting.onClick.AddListener(OnClickSettingBtn);
m_btnRank.onClick.AddListener(OnClickRankBtn); m_btnRank.onClick.AddListener(OnClickRankBtn);
} }
@ -71,15 +71,7 @@ namespace GameLogic
} }
private async void OnClickRankBtn() private async void OnClickRankBtn()
{ {
List<PlayRankData> playRankDatas = await DataGameModelManager.Instance.C2S_GetResultRank(1); GameModule.UI.ShowUI<UIGameWorldRankForm>();
if (playRankDatas != null)
{
// 整理参数传进来
object[] objects = new object[2];
objects[0] = GameRankType.;
objects[1] = playRankDatas;
GameModule.UI.ShowUI<UIGameRankForm>(objects);
}
} }
#endregion #endregion