private void explode() { List <Enemy> targets = findAllTargets(); bool boom = false; foreach (Enemy t in targets) { t.hurt(__app.baseDamage, this); boom = true; } if (boom) { checkDropLogbook(); // Visual GameObject myAOE = Instantiate(bombAOE); myAOE.GetComponent <SpriteRenderer>().color = (Vector4)__app.colors[antibioticType] + (new Vector4(0.1f, 0.1f, 0.1f, -0.5f)); myAOE.transform.position = transform.position + new Vector3(0, __app.towerShadowYOffset, 0); myAOE.transform.localScale += new Vector3(1, 0, 0); appScript.explode(gameObject.transform.position, 10, .1f, color); ammo--; } }