3DTD/Assets/Scripts/Utilities/TowerDeleter.cs

11 lines
218 B
C#
Raw Normal View History

2024-04-21 01:45:54 +02:00
using UnityEngine;
public class TowerDeleter : MonoBehaviour
{
public void Delete()
{
Tower tower = transform.root.GetComponentInChildren<Tower>();
Destroy(tower.gameObject);
}
}