void FindTarget() { List <Fader> list = fm.GetList(); //pick random target - ideally, we pick closest, but eeeh, let's not waste operations int index = Random.Range(0, list.Count); target = list[index].gameObject; }
private void AddScore() { score += 1; SetScore(score); if (score % 5 == 0) { enemyManager.SpawnEnemy(fishManager.GetList()); } }