Beispiel #1
0
        static void SetupStore()
        {
            var shareState = new ShareState();

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

            _store = new Store <AppState>(ShareReducer.reducer, new AppState(shareState), ShareMiddleware.Create());
        }
Beispiel #2
0
 public ShareWidget(Key key = null, Action <string> onUpload = null,
                    Action <string> onThumbnailSelect = null, Action onDestroy              = null,
                    Action stopUploadAction           = null, Action <string> onErrorAction = null, ShareState shareState = null) : base(key)
 {
     this.onUpload          = onUpload;
     this.onThumbnailSelect = onThumbnailSelect;
     this.onDestroy         = onDestroy;
     this.stopUploadAction  = stopUploadAction;
     this.onErrorAction     = onErrorAction;
     this.shareState        = shareState;
 }
Beispiel #3
0
 public AppState(ShareState shareState = null)
 {
     this.shareState = shareState;
 }