修复结算界面中返回主页按钮的功能
This commit is contained in:
@@ -197,7 +197,7 @@ RectTransform:
|
|||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
m_AnchorMin: {x: 0.15, y: 0.85}
|
m_AnchorMin: {x: 0.15, y: 0.85}
|
||||||
m_AnchorMax: {x: 0.15, y: 0.85}
|
m_AnchorMax: {x: 0.15, y: 0.85}
|
||||||
m_AnchoredPosition: {x: 0, y: 0}
|
m_AnchoredPosition: {x: 670, y: -226}
|
||||||
m_SizeDelta: {x: 578, y: 73}
|
m_SizeDelta: {x: 578, y: 73}
|
||||||
m_Pivot: {x: 0.5, y: 0.5}
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
--- !u!1 &372561841
|
--- !u!1 &372561841
|
||||||
@@ -1427,12 +1427,12 @@ MonoBehaviour:
|
|||||||
m_PersistentCalls:
|
m_PersistentCalls:
|
||||||
m_Calls:
|
m_Calls:
|
||||||
- m_Target: {fileID: 102900000, guid: a8692b9b19ec95b48918246882a64c8c, type: 3}
|
- m_Target: {fileID: 102900000, guid: a8692b9b19ec95b48918246882a64c8c, type: 3}
|
||||||
m_TargetAssemblyTypeName:
|
m_TargetAssemblyTypeName: UnityEngine.Object, UnityEngine
|
||||||
m_MethodName:
|
m_MethodName: set_name
|
||||||
m_Mode: 1
|
m_Mode: 5
|
||||||
m_Arguments:
|
m_Arguments:
|
||||||
m_ObjectArgument: {fileID: 0}
|
m_ObjectArgument: {fileID: 0}
|
||||||
m_ObjectArgumentAssemblyTypeName:
|
m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine
|
||||||
m_IntArgument: 0
|
m_IntArgument: 0
|
||||||
m_FloatArgument: 0
|
m_FloatArgument: 0
|
||||||
m_StringArgument:
|
m_StringArgument:
|
||||||
|
|||||||
@@ -93,6 +93,8 @@ namespace GameFramework
|
|||||||
}
|
}
|
||||||
transitionImage.gameObject.SetActive(false);
|
transitionImage.gameObject.SetActive(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
isLoading = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -65,8 +65,13 @@ namespace GameFramework
|
|||||||
|
|
||||||
void Start()
|
void Start()
|
||||||
{
|
{
|
||||||
// 判断胜负
|
// 确保 Canvas 有 GraphicRaycaster(否则按钮无法响应点击)
|
||||||
_isWin = (GameManager.GameState == GameState.Victory);
|
var canvas = GetComponent<Canvas>();
|
||||||
|
if (canvas != null && GetComponent<GraphicRaycaster>() == null)
|
||||||
|
gameObject.AddComponent<GraphicRaycaster>();
|
||||||
|
|
||||||
|
// 判断胜负(GameManager 可能未初始化,默认视为失败)
|
||||||
|
_isWin = GameManager.Instance != null && GameManager.GameState == GameState.Victory;
|
||||||
|
|
||||||
// 绑定按钮
|
// 绑定按钮
|
||||||
if (submitButton != null)
|
if (submitButton != null)
|
||||||
|
|||||||
@@ -27,13 +27,13 @@ EditorUserSettings:
|
|||||||
value: 5300055151055f5a5e0c0f27477708444515192b287124367c791f30b3b9616d
|
value: 5300055151055f5a5e0c0f27477708444515192b287124367c791f30b3b9616d
|
||||||
flags: 0
|
flags: 0
|
||||||
RecentlyUsedSceneGuid-7:
|
RecentlyUsedSceneGuid-7:
|
||||||
value: 5a5757560101590a5d0c0e24427b5d44434e4c7a7b7a23677f2b4565b7b5353a
|
value: 5a55515156575a0b0f56592346260f444f16197c7e7f24697d2a4a32b1b0353e
|
||||||
flags: 0
|
flags: 0
|
||||||
RecentlyUsedSceneGuid-8:
|
RecentlyUsedSceneGuid-8:
|
||||||
value: 0209025f575750595c57092149765d444e4e49727e7c7068757b1c65b6e36c3b
|
value: 5a5757560101590a5d0c0e24427b5d44434e4c7a7b7a23677f2b4565b7b5353a
|
||||||
flags: 0
|
flags: 0
|
||||||
RecentlyUsedSceneGuid-9:
|
RecentlyUsedSceneGuid-9:
|
||||||
value: 5a55515156575a0b0f56592346260f444f16197c7e7f24697d2a4a32b1b0353e
|
value: 0209025f575750595c57092149765d444e4e49727e7c7068757b1c65b6e36c3b
|
||||||
flags: 0
|
flags: 0
|
||||||
UnityEditor.ShaderGraph.Blackboard:
|
UnityEditor.ShaderGraph.Blackboard:
|
||||||
value: 18135939215a0a5004000b0e15254b524c030a3f2964643d120d1230e9e93a3fd6e826abbd2e2d293c4ead313b08042de6030a0afa240c0d020be94c4ba75e435d8715fa32c70d15d11612dacc11fee5d3c5d1fe9ab1bf968e93e2ffcbc3e7e2f0b3ffe0e8b0be9af8ffaeffff8e85dd8390e3949c8899daa7
|
value: 18135939215a0a5004000b0e15254b524c030a3f2964643d120d1230e9e93a3fd6e826abbd2e2d293c4ead313b08042de6030a0afa240c0d020be94c4ba75e435d8715fa32c70d15d11612dacc11fee5d3c5d1fe9ab1bf968e93e2ffcbc3e7e2f0b3ffe0e8b0be9af8ffaeffff8e85dd8390e3949c8899daa7
|
||||||
|
|||||||
Reference in New Issue
Block a user