Exemplo n.º 1
0
 void Die()
 {
     if (deathEffect != null)
     {
         Instantiate(deathEffect, transform.position, transform.rotation);
     }
     Destroy(gameObject);
     itemdropper.OnDeath();          //Trigger ItemDrop
 }