Exemplo n.º 1
0
 private void damagePlayer(PlayerStats player)
 {
     player.depleteLife();
     //damage animation here
     Destroy(this.gameObject);
 }