Start Flashcards

1
Q
void Start ()
{
InvokeRepeating ("SpawnRandomAnimal", startDelay, spawnInterval);
}
A

faz animais aparecerem randomicamente na tela

private void SpawnRandomAnimal()
{
}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

private Animator playerAnim;

A

playerAnim = GetComponent < Animator>();

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

private AudioSource playerAudio;

A

playerAudio = GetComponent < AudioSource >();

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

SpawnEnemyWave(3);

A
void SpawnEnemyWave(int enemiesToSpawn)
{
for (int i=0; i < enemiesToSpawn; i++)
{
Instantiate(enemyPrefab, GenerateSpawnPos, enemyPrefab.transform.rotation);
}
How well did you know this?
1
Not at all
2
3
4
5
Perfectly