public void InitTower(int x, int y) { Debug.Log("Tower Created!"); tileX = x; tileY = y; enemyFinder.SetRadius(range); StartCoroutine(WaitAndAttack()); }
public void Awake() { enemiesInSight = new List <Enemy>(); enemyFinder = GetComponentInChildren <EnemyFinder>(); enemyFinder.onEnemyEnter = OnEnemyEnter; enemyFinder.onEnemyExit = OnEnemyExit; enemyFinder.SetRadius(range); }