Advertisement
Guest User

Untitled

a guest
Dec 22nd, 2014
154
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 MyLib.Coroutine AddRoutine(MyLib.MonoBehaviour behaviour, string methodName, IEnumerator routine)
  2. {
  3. MyLib.BehaviourData bdata;
  4.  
  5. if (behaviourDict.TryGetValue(behaviour, out bdata))
  6. {
  7. var coroutine = new MyLib.Coroutine(methodName, routine);
  8. // ひとまず1回実行
  9. routine.MoveNext();
  10. bdata.routineList.AddLast(coroutine);
  11. return coroutine;
  12. }
  13. else
  14. {
  15. // ここに来ることはない
  16. return null;
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement