public GameObject blueBar; void OnTriggerEnter(Collider collision) { if(collision.gameObject.tag == "Shot") { blueBar.guiTexture.pixelInset.width += 64; Destroy(collision.gameObject); spawnOrb(); Destroy(gameObject); } }