Added Shift to "build many" in build handler
This commit is contained in:
parent
b625d78ac2
commit
01962bbc04
|
@ -82,11 +82,16 @@ namespace AsteroidGame.Handlers
|
||||||
{
|
{
|
||||||
if (!isBuilding) return;
|
if (!isBuilding) return;
|
||||||
if (_ghostStructure.BuildPlacementBlocked) return;
|
if (_ghostStructure.BuildPlacementBlocked) return;
|
||||||
|
if (!Keyboard.current.shiftKey.isPressed)
|
||||||
|
{
|
||||||
DestroyGhostStructure();
|
DestroyGhostStructure();
|
||||||
SpawnStructure();
|
|
||||||
isBuilding = false;
|
isBuilding = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SpawnStructure();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
public void AbortPlaceStructure()
|
public void AbortPlaceStructure()
|
||||||
{
|
{
|
||||||
if (!isBuilding) return;
|
if (!isBuilding) return;
|
||||||
|
|
Loading…
Reference in New Issue