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