I have a co-routine which is heavily reliant on calling itself to get the task done. I have tested it and the code works fine, the problem is that the co-routine will return every time that it enters itself recursively.
IEnumerator test(arg1, arg2)
{
// I want to pause here
yield return null;
// I don't want to pause on any of these
yield return test(arg1, arg2);
yield return test(arg1, arg2);
yield return test(arg1, arg2);
yield return test(arg1, arg2);
}
In the example above I have a yield return at the top that is hit and pauses the co-routine, thats fine. Then there are the calls to itself below which also pause the co-routine. How do I avoid pausing the co-routine on the recurcive calls?