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