using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using Unity.UIWidgets.engine; using Unity.UIWidgets.foundation; using Unity.UIWidgets.painting; using Unity.UIWidgets.rendering; using Unity.UIWidgets.ui; using Unity.UIWidgets.widgets; using UnityEngine; namespace Unity.UIWidgets.Sample.Redux.ObjectFinder { public static class StoreProvider { private static Store _store; public static Store store { get { if (_store != null) { return _store; } var middlewares = new Middleware[] { ReduxLogging.Create(), GameFinderMiddleware.Create(), }; _store = new Store(ObjectFinderReducer.Reduce, new FinderAppState(), middlewares ); return _store; } } } }