11 lines
218 B
C#
11 lines
218 B
C#
|
using UnityEngine;
|
||
|
|
||
|
public class TowerDeleter : MonoBehaviour
|
||
|
{
|
||
|
public void Delete()
|
||
|
{
|
||
|
Tower tower = transform.root.GetComponentInChildren<Tower>();
|
||
|
Destroy(tower.gameObject);
|
||
|
}
|
||
|
}
|