Advertisement
Guest User

Untitled

a guest
Dec 22nd, 2014
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. public static void RemoveRoutine(MyLib.MonoBehaviour behaviour, string methodName)
  2. {
  3. MyLib.BehaviourData bdata;
  4. if (behaviourDict.TryGetValue(behaviour, out bdata))
  5. {
  6. LinkedListNode<MyLib.Coroutine> node = bdata.routineList.First;
  7. while (node != null)
  8. {
  9. var oldNode = node;
  10. node = node.Next;
  11. if (oldNode.Value.methodName == methodName)
  12. {
  13. bdata.routineList.Remove(oldNode);
  14. }
  15. }
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement