示例#1
0
    IEnumerator Synchronizer()
    {
        Sync.SyncTuple action = sync.next();

        while (true)
        {
            if (Music.time >= action.timeStamp)
            {
                action.action();

                if (sync.Done())
                {
                    yield break;
                }

                action = sync.next();
            }

            yield return(null);
        }
    }