Now exits build mode after placing
This commit is contained in:
parent
8dd3dcefab
commit
51d699a7d6
|
@ -107,6 +107,9 @@ public class TowerPlacementManager : MonoBehaviour
|
|||
var spawnedTower = Instantiate(towerPrefab, CurrentSelectedSlot.transform);
|
||||
Quaternion newRotation = Quaternion.AngleAxis(CurrentRotation * 90f, transform.up);
|
||||
spawnedTower.transform.localRotation = newRotation;
|
||||
|
||||
Destroy(SilhouettedObject);
|
||||
OnTowerPlaced?.Invoke(SelectedTowerInfo);
|
||||
}
|
||||
|
||||
public void OnSlotHovered(SlotManager slot, GridManager grid, int x, int y)
|
||||
|
|
Loading…
Reference in New Issue