From 78fd42ebc25ff056039af23f591da31477675c15 Mon Sep 17 00:00:00 2001 From: Bobby Rafael <134128710+BobbyRafael31@users.noreply.github.com> Date: Wed, 9 Jul 2025 15:47:32 +0700 Subject: [PATCH] Feat: Add new grid size --- Assets/Scenes/Pathfinding.unity | 4 ++-- Assets/Scripts/PathfindingUIManager.cs | 8 +++++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/Assets/Scenes/Pathfinding.unity b/Assets/Scenes/Pathfinding.unity index 781290d..9bd1a1c 100644 --- a/Assets/Scenes/Pathfinding.unity +++ b/Assets/Scenes/Pathfinding.unity @@ -5161,8 +5161,8 @@ MonoBehaviour: saveButton: {fileID: 23184662} loadButton: {fileID: 332997445} exitButton: {fileID: 1403363528} - performWarmup: 1 - showWarmupMessage: 1 + performWarmup: 0 + showWarmupMessage: 0 mazeSizeDropdown: {fileID: 770082012} mazeDensityDropdown: {fileID: 1448650261} testerPanelPrefab: {fileID: 0} diff --git a/Assets/Scripts/PathfindingUIManager.cs b/Assets/Scripts/PathfindingUIManager.cs index 60f891c..6f56a07 100644 --- a/Assets/Scripts/PathfindingUIManager.cs +++ b/Assets/Scripts/PathfindingUIManager.cs @@ -286,7 +286,9 @@ public class PathfindingUIManager : MonoBehaviour mazeSizeDropdown.AddOptions(new System.Collections.Generic.List { "Small", "Medium", - "Big" + "Big", + "Very Big" + }); } @@ -563,6 +565,10 @@ public class PathfindingUIManager : MonoBehaviour sizeX = sizeY = 50; isLargeGrid = true; break; + case 3: // Sangat Besar + sizeX = sizeY = 100; + isLargeGrid = true; + break; // If more options are added that exceed MAX_GRID_SIZE, they'll be rejected }