using Unity.UIWidgets.Redux; namespace Unity.UIWidgets.Sample.Redux.ObjectFinder { public static class StoreProvider { static Store _store; public static Store store { get { if (_store != null) { return _store; } var middlewares = new Middleware[] { ReduxLogging.create(), ReduxThunk.create(), }; _store = new Store(ObjectFinderReducer.Reduce, new FinderAppState(), middlewares ); return _store; } } } }