Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void RemoveRoutine(MyLib.MonoBehaviour behaviour, string methodName)
- {
- MyLib.BehaviourData bdata;
- if (behaviourDict.TryGetValue(behaviour, out bdata))
- {
- LinkedListNode<MyLib.Coroutine> node = bdata.routineList.First;
- while (node != null)
- {
- var oldNode = node;
- node = node.Next;
- if (oldNode.Value.methodName == methodName)
- {
- bdata.routineList.Remove(oldNode);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement