Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public GameObject blueBar;
- void OnTriggerEnter(Collider collision)
- {
- if(collision.gameObject.tag == "Shot")
- {
- blueBar.guiTexture.pixelInset.width += 64;
- Destroy(collision.gameObject);
- spawnOrb();
- Destroy(gameObject);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement