Compare commits
2 Commits
dfd199f101
...
23d2a439c4
Author | SHA1 | Date |
---|---|---|
BOT Alex | 23d2a439c4 | |
BOT Alex | e81daa0302 |
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue