Start Flashcards
1
Q
void Start () { InvokeRepeating ("SpawnRandomAnimal", startDelay, spawnInterval); }
A
faz animais aparecerem randomicamente na tela
private void SpawnRandomAnimal()
{
}
2
Q
private Animator playerAnim;
A
playerAnim = GetComponent < Animator>();
3
Q
private AudioSource playerAudio;
A
playerAudio = GetComponent < AudioSource >();
4
Q
SpawnEnemyWave(3);
A
void SpawnEnemyWave(int enemiesToSpawn) { for (int i=0; i < enemiesToSpawn; i++) { Instantiate(enemyPrefab, GenerateSpawnPos, enemyPrefab.transform.rotation); }