Exemplo n.º 1
0
    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);
    }
Exemplo n.º 2
0
 private void Start()
 {
     audioSource = GetComponent <AudioSource>();
     queue       = new ShufflerQueue <AudioClip>(clips);
 }