0
 public void StartNewWave(float startDelay)
 {

     StartCoroutine(StartDelay());

     IEnumerator StartDelay()
     {
         yield return new WaitForSeconds(2);
         Timer.StartTimerFrom(startDelay, StartWave);
     }
 }

In this case its a wrapper around coroutine. I am also interested in regular nested methods.

1 Answers1

1

Local functions are allowed since C# 7.0

Hans Kesting
  • 38,117
  • 9
  • 79
  • 111