static SimpleCoroutineAwaiter GetAwaiterReturnVoid(object instruction)
    {
        var awaiter = new SimpleCoroutineAwaiter();

        RunOnUnityScheduler(() => AsyncCoroutineRunner.Instance.StartCoroutine(InstructionWrappers.ReturnVoid(awaiter, instruction)));
        return(awaiter);
    }
Exemplo n.º 2
0
        private static SimpleCoroutineAwaiter GetAwaiterReturnVoid(object instruction)
        {
            var awaiter    = new SimpleCoroutineAwaiter();
            var enumerator = InstructionWrappers.ReturnVoid(awaiter, instruction);

            RunOnUnityScheduler(() => RunCoroutine(enumerator));
            return(awaiter);
        }