public StorageKeyValue Load() { //Debug.LogError("STORAGE GET ASYNC "+_key); _storage.GetAsync(new string[] { _key }, hLoadDone); return(this); }
public void read_data(string aName, System.Action <byte[]> aResponse) { if (StorageCreated) { mStorage.GetAsync(new string[] { aName }, delegate(ContainerContext storage, GetDataMapViewAsyncOp op, DataMapView view) { if (op.Success) { var data = view.GetBuffer(aName); aResponse(data); } else { aResponse(null); } } ); } else { ManagerManager.Log("error trying to read data before storage is created"); aResponse(null); } }