Added Shift to "build many" in build handler

This commit is contained in:
Thomas Hodnemyr 2022-09-18 23:24:48 +02:00
parent b625d78ac2
commit 01962bbc04
1 changed files with 7 additions and 2 deletions

View File

@ -82,9 +82,14 @@ namespace AsteroidGame.Handlers
{ {
if (!isBuilding) return; if (!isBuilding) return;
if (_ghostStructure.BuildPlacementBlocked) return; if (_ghostStructure.BuildPlacementBlocked) return;
DestroyGhostStructure(); if (!Keyboard.current.shiftKey.isPressed)
{
DestroyGhostStructure();
isBuilding = false;
}
SpawnStructure(); SpawnStructure();
isBuilding = false;
} }
public void AbortPlaceStructure() public void AbortPlaceStructure()