示例#1
0
    public void InitTower(int x, int y)
    {
        Debug.Log("Tower Created!");
        tileX = x;
        tileY = y;
        enemyFinder.SetRadius(range);

        StartCoroutine(WaitAndAttack());
    }
示例#2
0
 public void Awake()
 {
     enemiesInSight           = new List <Enemy>();
     enemyFinder              = GetComponentInChildren <EnemyFinder>();
     enemyFinder.onEnemyEnter = OnEnemyEnter;
     enemyFinder.onEnemyExit  = OnEnemyExit;
     enemyFinder.SetRadius(range);
 }