Compare commits

...

2 Commits

Author SHA1 Message Date
BOT Alex 23d2a439c4 Merge branch 'main' of https://gitea.deprived.dev/Sveskejuice/3DTD 2024-04-21 03:21:27 +02:00
BOT Alex e81daa0302 tried to fix bug with silhouette 2024-04-21 03:21:23 +02:00
1 changed files with 3 additions and 1 deletions

View File

@ -5,6 +5,8 @@ using System.Linq;
using Unity.Mathematics;
using Unity.VisualScripting;
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.UI;
public class TowerPlacementManager : MonoBehaviour
{
@ -154,7 +156,7 @@ public class TowerPlacementManager : MonoBehaviour
{
var comp = objScripts[i];
if (comp is not Renderer && comp is not Transform && comp is not MeshFilter)
if (comp is not Renderer && comp is not Transform && comp is not MeshFilter && comp is not UIBehaviour)
{
Destroy(comp);
}