Esempio n. 1
0
 private void OnPlayerGotHit(object sender, PlayerEvent.PlayerGotHitEventArgs e)
 {
     Play(playerHit);
 }
Esempio n. 2
0
 private void OnPlayerHit(object sender, PlayerEvent.PlayerGotHitEventArgs e)
 {
     Invoke("EndGame", anim.clip.length - 0.2f);
     anim.Play();
 }
Esempio n. 3
0
    private void OnPlayerGotHitHandler(object sender, PlayerEvent.PlayerGotHitEventArgs e)
    {
        ParticleSystem fx = Instantiate(playerHitParticles, e.collisionPosition, Quaternion.identity, transform);

        Destroy(fx, playerHitParticles.main.duration);
    }