private void DropBullets() { byte amountOfBulletsToDrop = shieldController.GetAmountOfBulletsAbsorbedAndReset(); if (amountOfBulletsToDrop > 0) { var bulletDrop = Instantiate(bulletDropPrefab, transform.position, Quaternion.identity); bulletDrop.GetComponent <BulletDrop>().SetAmountOfBulletsToDrop(amountOfBulletsToDrop); bulletDrop.GetComponent <BulletDrop>().EnableCollider(0f); } }