Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Oct 11th, 2013  |  syntax: None  |  size: 0.25 KB  |  views: 79  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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.         }
clone this paste RAW Paste Data