void Die() { speed = 0; myAnim.Play("DeathEffect"); audioMan.Play(DeathSound); Destroy(gameObject, 0.6f); pStats.giveExp(expValue); int randomValueBetween0And99 = Random.Range(0, 100); if (randomValueBetween0And99 < dropChance) { DropLoot(droppedLoot); } if (randomValueBetween0And99 < dropChance1) { if (droppedLoot1 == null) { droppedLoot1 = droppedLoot; } DropLoot(droppedLoot1); } }