|
@@ -78,27 +78,27 @@ public class RenWuTypeWindow : MonoBehaviour
|
|
case 1:
|
|
case 1:
|
|
this.GetComponent<RawImage>().texture = null;
|
|
this.GetComponent<RawImage>().texture = null;
|
|
|
|
|
|
- if (dicDownloadTex.ContainsKey(data2.uuid))
|
|
|
|
|
|
+ //if (dicDownloadTex.ContainsKey(data2.uuid))
|
|
|
|
+ //{
|
|
|
|
+ // Debug.Log(" ContainsKey uuid " + data2.uuid);
|
|
|
|
+ // this.GetComponent<RawImage>().texture = dicDownloadTex[data2.uuid];
|
|
|
|
+ // changebizhi(dicDownloadTex[data2.uuid]);
|
|
|
|
+ //}
|
|
|
|
+ //else
|
|
{
|
|
{
|
|
- Debug.Log(" ContainsKey uuid " + data2.uuid);
|
|
|
|
- this.GetComponent<RawImage>().texture = dicDownloadTex[data2.uuid];
|
|
|
|
- changebizhi(dicDownloadTex[data2.uuid]);
|
|
|
|
- }
|
|
|
|
- else
|
|
|
|
- {
|
|
|
|
- dicDownloadTex.Add(data2.uuid, new Texture2D(1,1));
|
|
|
|
|
|
+ // dicDownloadTex.Add(data2.uuid, new Texture2D(1,1));
|
|
|
|
|
|
DownLoadXRManager.DownLoadForFilePath(data2, (string bytes) => {
|
|
DownLoadXRManager.DownLoadForFilePath(data2, (string bytes) => {
|
|
|
|
|
|
Debug.Log("RoomFileMinio.Instance.bucket=End=0=>" + bytes);
|
|
Debug.Log("RoomFileMinio.Instance.bucket=End=0=>" + bytes);
|
|
-
|
|
|
|
|
|
+ Debug.Log("DGJ ===> Room " + Loom.numThreads);
|
|
string localpath = bytes;
|
|
string localpath = bytes;
|
|
Loom.RunAsync(() =>
|
|
Loom.RunAsync(() =>
|
|
{
|
|
{
|
|
Debug.Log("RoomFileMinio.Instance.bucket=End=13=>");
|
|
Debug.Log("RoomFileMinio.Instance.bucket=End=13=>");
|
|
Debug.Log("RoomFileMinio.Instance.bucket=End=1=>" + localpath);
|
|
Debug.Log("RoomFileMinio.Instance.bucket=End=1=>" + localpath);
|
|
|
|
|
|
-
|
|
|
|
|
|
+
|
|
_mat = GameUtility.zoomByteByOpenCV(localpath, 1, false, true);
|
|
_mat = GameUtility.zoomByteByOpenCV(localpath, 1, false, true);
|
|
|
|
|
|
Debug.Log("RoomFileMinio.Instance.bucket=End==2=>" + localpath);
|
|
Debug.Log("RoomFileMinio.Instance.bucket=End==2=>" + localpath);
|
|
@@ -109,18 +109,19 @@ public class RenWuTypeWindow : MonoBehaviour
|
|
Destroy(tex);
|
|
Destroy(tex);
|
|
}
|
|
}
|
|
tex = GameUtility.TextureByMat(_mat);
|
|
tex = GameUtility.TextureByMat(_mat);
|
|
- Texture2D texture2D = GameUtility.TextureByMat(_mat);
|
|
|
|
|
|
+ // Texture2D texture2D = GameUtility.TextureByMat(_mat);
|
|
this.GetComponent<RawImage>().texture = tex;
|
|
this.GetComponent<RawImage>().texture = tex;
|
|
Debug.Log(" RawImag uuid " + data2.uuid);
|
|
Debug.Log(" RawImag uuid " + data2.uuid);
|
|
|
|
|
|
- dicDownloadTex[data2.uuid] = texture2D;
|
|
|
|
|
|
+ // dicDownloadTex[data2.uuid] = texture2D;
|
|
changebizhi(tex);
|
|
changebizhi(tex);
|
|
-
|
|
|
|
|
|
+ Debug.Log("DGJ ===> Loom.numThreads " + Loom.numThreads);
|
|
|
|
+ Loom.numThreads--;
|
|
|
|
|
|
});
|
|
});
|
|
});
|
|
});
|
|
|
|
|
|
- }, (float f) => { });
|
|
|
|
|
|
+ }, (float f) => { });
|
|
}
|
|
}
|
|
|
|
|
|
break;
|
|
break;
|