public void TakeDamage(int damage) { if (!invincible) { Debug.Log(AudioHost._audio); Debug.Log(TakeDamageSound); AudioHost._audio.PlayClip(TakeDamageSound); playerInvincibilityEffect.Begin(); for (int i = 0; i < damage; i++) { ItemInstance aRemainingOrb = InventoryManager.SearchForFirstItemOfType(healthOrbInstance); if (aRemainingOrb == null) { Die(); } else { InventoryManager.DestroyItemInInventory(aRemainingOrb); } } invincible = true; } }