Coroutine in an arbitrary class

For my application, I created several classes, which is not a component. These classes are inherited from one. The base class must use Coroutines.

If I inherit from a base class monobehaviour, I get a warning about the inadmissibility design AppMode appMode = new InputConfigMode (Mem); (AppMode: MonoBehaviour)

If not inherit MonoBehaviour - unavailable Coroutines …

Which solution is optimal?

You could use a helper class like this :wink:

Actually all you need is an actual Gameobject with MonoBehaviour to run your coroutines on. An empty (MonoBehaviour-)singleton class would do.