Question by
vuuk · Aug 12, 2020 at 09:22 AM ·
coroutinesmethoddesign-patterns
Are locally declared methods/coroutines ok?
Still learning to code so help me please.Is something like this acceptable?
public void StartNewWave(float startDelay)
{
StartCoroutine(StartDelay());
IEnumerator StartDelay()
{
yield return new WaitForSeconds(2);
Timer.StartTimerFrom(startDelay, StartWave);
}
}
Comment
Your answer
Follow this Question
Related Questions
Unity MVC animation coroutine 0 Answers
How to keep program linear and synchronous while getting user input? 1 Answer
Error CS1061...does not contain a definition for...and no extension method 1 Answer
Why i cant call this simple method?(c#) 1 Answer
Setting variable in prefab from a method called by prefab 1 Answer