修了不少东西
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user