add:添加空格跳关选项

This commit is contained in:
bzx
2025-11-27 17:22:36 +08:00
parent 1e7f6fc381
commit ab59cd4c69

View File

@@ -228,6 +228,8 @@ public class GameManager : NetworkBehaviour
CurRoundIndex++;
CoroutineTaskManager.Instance.WaitSecondTodo(() =>
{
if(gameState==GameState.Waiting)
return;
StopRound();
}, roundAllTime);
}
@@ -639,6 +641,14 @@ public class GameManager : NetworkBehaviour
StopAirDrop();
}
}
if (isServer)
{
if (Input.GetKeyDown(KeyCode.Space))
{
StopRound();
}
}
}
[Server]