private void Awake() { instance = this; levelTxt.text = "" + level; enemies = Mathf.FloorToInt(Mathf.Lerp(1, enemySpawnPoints.Count + 2, level / 10f)); enemies = Mathf.Clamp(enemies, 1, enemySpawnPoints.Count); remainingEnemies = enemies; spawnPointsQueue = new ShufflerQueue <Transform>(enemySpawnPoints); }
private void Start() { audioSource = GetComponent <AudioSource>(); queue = new ShufflerQueue <AudioClip>(clips); }