Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var pickedup = false;
- function OnCollisionStart (collision : Collision) {
- if (collision.gameObject.tag == "spear") {
- Debug.Log("hit");
- Destroy(collision.gameObject);
- Debug.Log("destroyed");
- var pickedup = true;
- }
- }
Add Comment
Please, Sign In to add comment