Compare commits
No commits in common. "23d2a439c42ae418c6bb691926c7a47e39ec72db" and "dfd199f101565b84f5d1590484d4c83eb1696f31" have entirely different histories.
23d2a439c4
...
dfd199f101
|
@ -5,8 +5,6 @@ using System.Linq;
|
||||||
using Unity.Mathematics;
|
using Unity.Mathematics;
|
||||||
using Unity.VisualScripting;
|
using Unity.VisualScripting;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using UnityEngine.EventSystems;
|
|
||||||
using UnityEngine.UI;
|
|
||||||
|
|
||||||
public class TowerPlacementManager : MonoBehaviour
|
public class TowerPlacementManager : MonoBehaviour
|
||||||
{
|
{
|
||||||
|
@ -156,7 +154,7 @@ public class TowerPlacementManager : MonoBehaviour
|
||||||
{
|
{
|
||||||
var comp = objScripts[i];
|
var comp = objScripts[i];
|
||||||
|
|
||||||
if (comp is not Renderer && comp is not Transform && comp is not MeshFilter && comp is not UIBehaviour)
|
if (comp is not Renderer && comp is not Transform && comp is not MeshFilter)
|
||||||
{
|
{
|
||||||
Destroy(comp);
|
Destroy(comp);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue