From 1d3857cb0002420598408aa37d5432279ef85c90 Mon Sep 17 00:00:00 2001 From: Ian Woods Date: Tue, 2 Jun 2026 22:05:41 -0700 Subject: [PATCH] CancelPlacement -> ExitPlacementMode, also it's not public anymore --- .../Scripts/Gameplay/TowerPlacementController.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Assets/_Project/Scripts/Gameplay/TowerPlacementController.cs b/Assets/_Project/Scripts/Gameplay/TowerPlacementController.cs index cc47d58..3b71743 100644 --- a/Assets/_Project/Scripts/Gameplay/TowerPlacementController.cs +++ b/Assets/_Project/Scripts/Gameplay/TowerPlacementController.cs @@ -100,7 +100,7 @@ namespace TD.Gameplay private void OnDisable() { TowerPlacementManager.OnPlacementRejected -= HandlePlacementRejected; - CancelPlacement(); + ExitPlacementMode(); } private void Update() @@ -108,7 +108,7 @@ namespace TD.Gameplay if (pendingCancel) { pendingCancel = false; - CancelPlacement(); + ExitPlacementMode(); return; } @@ -120,7 +120,7 @@ namespace TD.Gameplay // Right-click cancels placement. if (mouse.rightButton.wasPressedThisFrame) { - CancelPlacement(); + ExitPlacementMode(); return; } @@ -180,7 +180,7 @@ namespace TD.Gameplay } // Cancel any existing placement before starting a new one. - CancelPlacement(); + ExitPlacementMode(); activeDef = def; activeTowerTypeId = towerTypeId; @@ -191,7 +191,7 @@ namespace TD.Gameplay /// /// Cancels placement mode and destroys the ghost. Safe to call when idle. /// - public void CancelPlacement() + void ExitPlacementMode() { activeDef = null; activeTowerTypeId = 0;