de-select

This commit is contained in:
Sveske Juice 2024-04-21 04:09:41 +02:00
parent 4a3336b4e5
commit a29568067f
1 changed files with 8 additions and 0 deletions

View File

@ -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()