Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static MyLib.Coroutine AddRoutine(MyLib.MonoBehaviour behaviour, string methodName, IEnumerator routine)
- {
- MyLib.BehaviourData bdata;
- if (behaviourDict.TryGetValue(behaviour, out bdata))
- {
- var coroutine = new MyLib.Coroutine(methodName, routine);
- // ひとまず1回実行
- routine.MoveNext();
- bdata.routineList.AddLast(coroutine);
- return coroutine;
- }
- else
- {
- // ここに来ることはない
- return null;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement