public ReducerBase() { _undoApplier = new UndoApplier <TState>(30, AllowUndoCondition); if (CoroutineHolder.Instance == null) { _coroutineHolder = new GameObject("CoroutinesHolder").AddComponent <CoroutineHolder>(); } else { _coroutineHolder = CoroutineHolder.Instance; } }
public void Dispose() { _undoApplier = null; _context = null; _coroutineHolder = null; }