Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void OnTriggerEnter2D( collider2D coll)
- {
- if(coll.gameObject.tag == "letagdetonobjet") actions;
- else if(coll.gameObject.name == "lenomdetonobjet") actions;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement