private float timer; // Counts down for the next shot void Awake() { towerSpawnerManager = GameObject.FindGameObjectWithTag("T_TowerSpawnerManager").GetComponent <TowerSpawnerManager>(); startTimer = 1f; }
public Text HP; // Reference to the Text Hp component. void Awake() { baseManagement = GameObject.FindGameObjectWithTag("T_Base").GetComponent <BaseManager>(); towerSpawnerManager = GameObject.FindGameObjectWithTag("T_TowerSpawnerManager").GetComponent <TowerSpawnerManager>(); }