修了不少东西

This commit is contained in:
FloatGaming
2026-07-16 23:04:59 +08:00
parent 29972d0705
commit 73fe474cc6
134 changed files with 7673 additions and 741 deletions
+14
View File
@@ -50,6 +50,10 @@ public class pressStart : MonoBehaviour
public Image fadeOutImage;
public float startButtonDelay = 2f; // UI starts showing after 2 seconds; allow clicking then.
[Header("UI_UI Jump Blocker")]
public bool blockUIUISceneJump = false;
public string blockUIUISceneJumpMessage = "暂不可进入。";
// polling
private Coroutine pollCoroutine;
private float pollInterval = 3f;
@@ -252,6 +256,16 @@ public class pressStart : MonoBehaviour
// 修改为点击一次即可开始进入游戏序列
Debug.Log("[pressStart] Start requested, initiating transition sequence.");
GameConfig.testMode = false;
if (blockUIUISceneJump)
{
string message = string.IsNullOrWhiteSpace(blockUIUISceneJumpMessage)
? "暂不可进入。"
: blockUIUISceneJumpMessage;
gNotice.error.display(message);
Debug.LogWarning("[pressStart] UI_UI scene jump blocked: " + message);
return;
}
if (warningText != null)
{