diff --git a/Assets/Scripts/PlacementSystem/CameraSlotClickDetect.cs b/Assets/Scripts/PlacementSystem/CameraSlotClickDetect.cs index 102acfb..7355048 100644 --- a/Assets/Scripts/PlacementSystem/CameraSlotClickDetect.cs +++ b/Assets/Scripts/PlacementSystem/CameraSlotClickDetect.cs @@ -51,6 +51,14 @@ public class CameraSlotClickDetect : MonoBehaviour else Debug.LogWarning("TowerCam scpritet is not assigned, assign in the inspector"); } + else + { + GameManager.Instance.SelectedTower = null; + if (towerCam != null) + towerCam.ChangeToTarget(null); + else + Debug.LogWarning("TowerCam scpritet is not assigned, assign in the inspector"); + } } void ShootHoverRay()