CancelPlacement -> ExitPlacementMode, also it's not public anymore
This commit is contained in:
parent
013d4bf150
commit
1d3857cb00
1 changed files with 5 additions and 5 deletions
|
|
@ -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
|
|||
/// <summary>
|
||||
/// Cancels placement mode and destroys the ghost. Safe to call when idle.
|
||||
/// </summary>
|
||||
public void CancelPlacement()
|
||||
void ExitPlacementMode()
|
||||
{
|
||||
activeDef = null;
|
||||
activeTowerTypeId = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue