示例#1
0
        static void _setupStore()
        {
            var shareState = new ShareState();

            EditorJsonUtility.FromJsonOverwrite(
                SessionState.GetString(typeof(ConnectShareEditorWindow).Name, "{}"),
                shareState
                );

            _store = new Store <AppState>(
                ShareReducer.reducer,
                initialState: new AppState(shareState: shareState),
                middlewares: ShareMiddleware.Create()
                );
        }
示例#2
0
 static void _setupStore()
 {
     _store = new Store <AppState>(ShareReducer.reducer,
                                   initialState: new AppState(shareState: new ShareState()),
                                   middlewares: ShareMiddleware.Create());
 }