Advertisement
Guest User

Untitled

a guest
Oct 11th, 2013
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. public GameObject blueBar;
  2.  
  3. void OnTriggerEnter(Collider collision)
  4. {
  5. if(collision.gameObject.tag == "Shot")
  6. {
  7. blueBar.guiTexture.pixelInset.width += 64;
  8. Destroy(collision.gameObject);
  9. spawnOrb();
  10. Destroy(gameObject);
  11. }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement