using UnityEngine; public class TowerDeleter : MonoBehaviour { public void Delete() { Tower tower = transform.parent.parent.GetComponentInChildren(); Destroy(tower.gameObject); } }