Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. LinkedList<BoxCollider> list = new LinkedList<BoxCollider>();
  2. LinkedListNode<BoxCollider> current;
  3.  
  4. void Awake()
  5. {
  6. list.AddLast(new BoxCollider);
  7. current = list.First;
  8. }
  9.  
  10. OnTriggerEnter(BoxCollider collidedWith)
  11. {
  12. if(collidedWith == current.Value)
  13. {
  14. current = current.Next;
  15. }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement