Update Flashcards

1
Q
private void OnTriggerEnter(Collider other)
{
Destroy (gameObject);
Destroy(other.gameObject);
}
A

Detecta colisão e destroi ambos objetos

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

private Animator playerAnim;

A

playerAnim.SetTrigger(“Jump_trig”);

Jump_trig é um parâmetro da animação para pular

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

public ParticleSystem explosionParticle;

A

explosionParticle.Play();

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

public int enemyCount;

A
enemyCount = FindObjectsOfType  <  Enemy>().Length;
if (enemyCount ==0)
{
SpawnEnemyWave(1);
}
How well did you know this?
1
Not at all
2
3
4
5
Perfectly