XDracam / unity-corelibrary

Collection of classes and extension methods that make life with Unity3D more comfortable
MIT License
15 stars 3 forks source link

Replace `bool fixedUpdate` arguments with a custom yield object #5

Closed XDracam closed 5 years ago

XDracam commented 5 years ago

Things to consider:

  1. Make two versions of each function for YieldInstruction and CustomYieldInstruction or allow object?
  2. Is a reusable object (new WaitForFixedUpdate()) enough or do we need a Func<?> as generator?
XDracam commented 5 years ago

Turns out this doesn't make sense for DelayForFrames, RepeatForSeconds and RepeatForFrames, so I'm leaving these two unchanged.